From e3e1920c84b270247c0d8555265a112f8e60c4fe Mon Sep 17 00:00:00 2001 From: samba <samba@autistici.org> Date: Sun, 19 May 2019 22:13:10 +0200 Subject: [PATCH] [auto] theme: twentythirteen 2.9 --- wp-content/themes/twentythirteen/archive.php | 2 +- wp-content/themes/twentythirteen/author.php | 2 +- wp-content/themes/twentythirteen/category.php | 2 +- wp-content/themes/twentythirteen/comments.php | 11 +++++- .../themes/twentythirteen/content-none.php | 4 +- .../themes/twentythirteen/functions.php | 37 ++++++++++++++----- wp-content/themes/twentythirteen/header.php | 3 +- wp-content/themes/twentythirteen/image.php | 2 +- .../twentythirteen/inc/custom-header.php | 2 +- wp-content/themes/twentythirteen/index.php | 2 +- wp-content/themes/twentythirteen/readme.txt | 15 +++++++- wp-content/themes/twentythirteen/style.css | 2 +- wp-content/themes/twentythirteen/tag.php | 2 +- .../twentythirteen/taxonomy-post_format.php | 2 +- 14 files changed, 64 insertions(+), 24 deletions(-) diff --git a/wp-content/themes/twentythirteen/archive.php b/wp-content/themes/twentythirteen/archive.php index e8cc26a56..4fc29f5b2 100644 --- a/wp-content/themes/twentythirteen/archive.php +++ b/wp-content/themes/twentythirteen/archive.php @@ -10,7 +10,7 @@ * already has tag.php for Tag archives, category.php for Category archives, * and author.php for Author archives. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Thirteen diff --git a/wp-content/themes/twentythirteen/author.php b/wp-content/themes/twentythirteen/author.php index aadcd0e85..d9bbf2e3d 100644 --- a/wp-content/themes/twentythirteen/author.php +++ b/wp-content/themes/twentythirteen/author.php @@ -2,7 +2,7 @@ /** * The template for displaying Author archive pages * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Thirteen diff --git a/wp-content/themes/twentythirteen/category.php b/wp-content/themes/twentythirteen/category.php index 7751df3d1..ba71dd714 100644 --- a/wp-content/themes/twentythirteen/category.php +++ b/wp-content/themes/twentythirteen/category.php @@ -2,7 +2,7 @@ /** * The template for displaying Category pages * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Thirteen diff --git a/wp-content/themes/twentythirteen/comments.php b/wp-content/themes/twentythirteen/comments.php index 464235cc9..634814578 100644 --- a/wp-content/themes/twentythirteen/comments.php +++ b/wp-content/themes/twentythirteen/comments.php @@ -23,11 +23,20 @@ if ( post_password_required() ) { <?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php + if ( 1 === get_comments_number() ) { printf( - _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'twentythirteen' ), + /* translators: %s: The post title. */ + _x( 'One thought on “%s”', 'comments title', 'twentythirteen' ), + '<span>' . get_the_title() . '</span>' + ); + } else { + printf( + /* translators: %1$s: The number of comments. %2$s: The post title. */ + _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'twentythirteen' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); + } ?> </h2> diff --git a/wp-content/themes/twentythirteen/content-none.php b/wp-content/themes/twentythirteen/content-none.php index d9549e1a8..dba04c06d 100644 --- a/wp-content/themes/twentythirteen/content-none.php +++ b/wp-content/themes/twentythirteen/content-none.php @@ -20,12 +20,12 @@ <?php elseif ( is_search() ) : ?> <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with different keywords.', 'twentythirteen' ); ?></p> - <?php get_search_form(); ?> + <?php get_search_form(); ?> <?php else : ?> <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentythirteen' ); ?></p> - <?php get_search_form(); ?> + <?php get_search_form(); ?> <?php endif; ?> </div><!-- .page-content --> diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index 980acfc72..5c021fbe3 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -6,12 +6,13 @@ * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionality. * - * When using a child theme (see https://codex.wordpress.org/Theme_Development - * and https://codex.wordpress.org/Child_Themes), you can override certain - * functions (those wrapped in a function_exists() call) by defining them first - * in your child theme's functions.php file. The child theme's functions.php - * file is included before the parent theme's file, so the child theme - * functions would be used. + * When using a child theme you can override certain functions (those wrapped + * in a function_exists() call) by defining them first in your child theme's + * functions.php file. The child theme's functions.php file is included before + * the parent theme's file, so the child theme functions would be used. + * + * @link https://codex.wordpress.org/Theme_Development + * @link https://developer.wordpress.org/themes/advanced-topics/child-themes/ * * Functions that are not pluggable (not wrapped in function_exists()) are * instead attached to a filter or action hook. @@ -277,7 +278,7 @@ function twentythirteen_scripts_styles() { wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); // Add Genericons font, used in the main stylesheet. - wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.03' ); + wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' ); // Loads our main stylesheet. wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' ); @@ -587,8 +588,8 @@ if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) : // get the URL of the next image attachment... if ( $next_id ) { $next_attachment_url = get_attachment_link( $next_id ); - } // or get the URL of the first image attachment. - else { + } else { + // or get the URL of the first image attachment. $next_attachment_url = get_attachment_link( reset( $attachment_ids ) ); } } @@ -777,3 +778,21 @@ function twentythirteen_widget_tag_cloud_args( $args ) { return $args; } add_filter( 'widget_tag_cloud_args', 'twentythirteen_widget_tag_cloud_args' ); + +if ( ! function_exists( 'wp_body_open' ) ) : + /** + * Fire the wp_body_open action. + * + * Added for backwards compatibility to support pre 5.2.0 WordPress versions. + * + * @since Twenty Thirteen 2.8 + */ + function wp_body_open() { + /** + * Triggered after the opening <body> tag. + * + * @since Twenty Thirteen 2.8 + */ + do_action( 'wp_body_open' ); + } +endif; diff --git a/wp-content/themes/twentythirteen/header.php b/wp-content/themes/twentythirteen/header.php index 8343d76af..dee665689 100644 --- a/wp-content/themes/twentythirteen/header.php +++ b/wp-content/themes/twentythirteen/header.php @@ -23,7 +23,7 @@ <meta name="viewport" content="width=device-width"> <title><?php wp_title( '|', true, 'right' ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11"> - <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> + <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script> <![endif]--> @@ -31,6 +31,7 @@ </head> <body <?php body_class(); ?>> + <?php wp_body_open(); ?> <div id="page" class="hfeed site"> <header id="masthead" class="site-header" role="banner"> <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> diff --git a/wp-content/themes/twentythirteen/image.php b/wp-content/themes/twentythirteen/image.php index d3ef31ef2..89708f37c 100644 --- a/wp-content/themes/twentythirteen/image.php +++ b/wp-content/themes/twentythirteen/image.php @@ -2,7 +2,7 @@ /** * The template for displaying image attachments * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Thirteen diff --git a/wp-content/themes/twentythirteen/inc/custom-header.php b/wp-content/themes/twentythirteen/inc/custom-header.php index 55679ce9e..29a98f3f5 100644 --- a/wp-content/themes/twentythirteen/inc/custom-header.php +++ b/wp-content/themes/twentythirteen/inc/custom-header.php @@ -74,7 +74,7 @@ function twentythirteen_custom_header_fonts() { wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); // Add Genericons font. - wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.03' ); + wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' ); } add_action( 'admin_print_styles-appearance_page_custom-header', 'twentythirteen_custom_header_fonts' ); diff --git a/wp-content/themes/twentythirteen/index.php b/wp-content/themes/twentythirteen/index.php index 4db10badd..ec8de084d 100644 --- a/wp-content/themes/twentythirteen/index.php +++ b/wp-content/themes/twentythirteen/index.php @@ -7,7 +7,7 @@ * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php file exists. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Thirteen diff --git a/wp-content/themes/twentythirteen/readme.txt b/wp-content/themes/twentythirteen/readme.txt index e1a9972e3..49a64f63f 100644 --- a/wp-content/themes/twentythirteen/readme.txt +++ b/wp-content/themes/twentythirteen/readme.txt @@ -1,8 +1,9 @@ === Twenty Thirteen === -Contributors: the WordPress team +Contributors: wordpressdotorg Requires at least: WordPress 3.6 Tested up to: WordPress 5.0 -Stable tag: 2.7 +Requires PHP: 5.2.4 +Stable tag: 2.9 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, footer-widgets, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready @@ -47,6 +48,16 @@ Source: http://www.genericons.com == Changelog == += 2.9 = +* Released: May 7, 2019 + +https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_2.9 + += 2.8 = +* Released: February 21, 2019 + +https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_2.8 + = 2.7 = * Released: January 9, 2019 diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index 147b28559..2da272991 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentythirteen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small. -Version: 2.7 +Version: 2.9 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, footer-widgets, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready diff --git a/wp-content/themes/twentythirteen/tag.php b/wp-content/themes/twentythirteen/tag.php index 12a02e0ab..e5749fa6c 100644 --- a/wp-content/themes/twentythirteen/tag.php +++ b/wp-content/themes/twentythirteen/tag.php @@ -4,7 +4,7 @@ * * Used to display archive-type pages for posts in a tag. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Thirteen diff --git a/wp-content/themes/twentythirteen/taxonomy-post_format.php b/wp-content/themes/twentythirteen/taxonomy-post_format.php index 62840927a..67a58f0f0 100644 --- a/wp-content/themes/twentythirteen/taxonomy-post_format.php +++ b/wp-content/themes/twentythirteen/taxonomy-post_format.php @@ -6,7 +6,7 @@ * If you'd like to further customize these Post Format views, you may create a * new template file for each specific one. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Thirteen -- GitLab