# HG changeset patch # User ymh # Date 1571070603 -7200 # Node ID 372f2766ea20b39e25ff9e10d395f4b2d600e9fd # Parent 177826044cd9f90c5206b6f38ba52414473bb0fe update themes diff -r 177826044cd9 -r 372f2766ea20 wp/wp-content/themes/twentythirteen/archive.php --- a/wp/wp-content/themes/twentythirteen/archive.php Mon Oct 14 18:28:13 2019 +0200 +++ b/wp/wp-content/themes/twentythirteen/archive.php Mon Oct 14 18:30:03 2019 +0200 @@ -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 @@ -35,7 +35,7 @@ else : _e( 'Archives', 'twentythirteen' ); endif; - ?> + ?> @@ -43,7 +43,7 @@ + ?> diff -r 177826044cd9 -r 372f2766ea20 wp/wp-content/themes/twentythirteen/author.php --- a/wp/wp-content/themes/twentythirteen/author.php Mon Oct 14 18:28:13 2019 +0200 +++ b/wp/wp-content/themes/twentythirteen/author.php Mon Oct 14 18:30:03 2019 +0200 @@ -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 @@ -48,7 +48,7 @@ + ?> diff -r 177826044cd9 -r 372f2766ea20 wp/wp-content/themes/twentythirteen/category.php --- a/wp/wp-content/themes/twentythirteen/category.php Mon Oct 14 18:28:13 2019 +0200 +++ b/wp/wp-content/themes/twentythirteen/category.php Mon Oct 14 18:30:03 2019 +0200 @@ -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 @@ -27,7 +27,7 @@ + ?> diff -r 177826044cd9 -r 372f2766ea20 wp/wp-content/themes/twentythirteen/comments.php --- a/wp/wp-content/themes/twentythirteen/comments.php Mon Oct 14 18:28:13 2019 +0200 +++ b/wp/wp-content/themes/twentythirteen/comments.php Mon Oct 14 18:30:03 2019 +0200 @@ -23,10 +23,20 @@

' . get_the_title() . '' + /* translators: %s: The post title. */ + _x( 'One thought on “%s”', 'comments title', 'twentythirteen' ), + '' . get_the_title() . '' ); + } 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() ), + '' . get_the_title() . '' + ); + } ?>

@@ -45,7 +55,7 @@ 1 && get_option( 'page_comments' ) ) : - ?> + ?> - - selective_refresh ) ) { $wp_customize->selective_refresh->add_partial( - 'blogname', array( + 'blogname', + array( 'selector' => '.site-title', 'container_inclusive' => false, 'render_callback' => 'twentythirteen_customize_partial_blogname', ) ); $wp_customize->selective_refresh->add_partial( - 'blogdescription', array( + 'blogdescription', + array( 'selector' => '.site-description', 'container_inclusive' => false, 'render_callback' => 'twentythirteen_customize_partial_blogdescription', @@ -683,3 +778,21 @@ 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 tag. + * + * @since Twenty Thirteen 2.8 + */ + do_action( 'wp_body_open' ); + } +endif; diff -r 177826044cd9 -r 372f2766ea20 wp/wp-content/themes/twentythirteen/header.php --- a/wp/wp-content/themes/twentythirteen/header.php Mon Oct 14 18:28:13 2019 +0200 +++ b/wp/wp-content/themes/twentythirteen/header.php Mon Oct 14 18:30:03 2019 +0200 @@ -23,7 +23,7 @@ <?php wp_title( '|', true, 'right' ); ?> - + @@ -31,6 +31,7 @@ > +
diff -r 177826044cd9 -r 372f2766ea20 wp/wp-content/themes/twentythirteen/image.php --- a/wp/wp-content/themes/twentythirteen/image.php Mon Oct 14 18:28:13 2019 +0200 +++ b/wp/wp-content/themes/twentythirteen/image.php Mon Oct 14 18:30:03 2019 +0200 @@ -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 @@ -18,7 +18,7 @@ // Start the Loop. while ( have_posts() ) : the_post(); - ?> + ?>
>
@@ -91,7 +91,7 @@
- + diff -r 177826044cd9 -r 372f2766ea20 wp/wp-content/themes/twentythirteen/inc/back-compat.php --- a/wp/wp-content/themes/twentythirteen/inc/back-compat.php Mon Oct 14 18:28:13 2019 +0200 +++ b/wp/wp-content/themes/twentythirteen/inc/back-compat.php Mon Oct 14 18:30:03 2019 +0200 @@ -45,7 +45,9 @@ */ function twentythirteen_customize() { wp_die( - sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ), '', array( + sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ), + '', + array( 'back_link' => true, ) ); diff -r 177826044cd9 -r 372f2766ea20 wp/wp-content/themes/twentythirteen/inc/custom-header.php --- a/wp/wp-content/themes/twentythirteen/inc/custom-header.php Mon Oct 14 18:28:13 2019 +0200 +++ b/wp/wp-content/themes/twentythirteen/inc/custom-header.php Mon Oct 14 18:30:03 2019 +0200 @@ -74,7 +74,7 @@ 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' ); @@ -99,7 +99,7 @@ -"> - + ?> diff -r 177826044cd9 -r 372f2766ea20 wp/wp-content/themes/twentythirteen/page.php --- a/wp/wp-content/themes/twentythirteen/page.php Mon Oct 14 18:28:13 2019 +0200 +++ b/wp/wp-content/themes/twentythirteen/page.php Mon Oct 14 18:30:03 2019 +0200 @@ -20,7 +20,7 @@ + ?>
>
@@ -44,7 +44,7 @@ 'link_after' => '', ) ); -?> + ?>