From f6fd66df70f0bdc563061f5cfcdf45b2a2afa718 Mon Sep 17 00:00:00 2001 From: samba <samba@autistici.org> Date: Sun, 19 May 2019 22:12:53 +0200 Subject: [PATCH] [auto] theme: twentyfourteen 2.7 --- wp-content/themes/twentyfourteen/archive.php | 2 +- wp-content/themes/twentyfourteen/author.php | 2 +- wp-content/themes/twentyfourteen/category.php | 2 +- .../themes/twentyfourteen/content-aside.php | 6 ++-- .../themes/twentyfourteen/content-audio.php | 6 ++-- .../twentyfourteen/content-featured-post.php | 2 +- .../themes/twentyfourteen/content-gallery.php | 6 ++-- .../themes/twentyfourteen/content-image.php | 6 ++-- .../themes/twentyfourteen/content-link.php | 6 ++-- .../themes/twentyfourteen/content-none.php | 4 +-- .../themes/twentyfourteen/content-page.php | 2 +- .../themes/twentyfourteen/content-quote.php | 6 ++-- .../themes/twentyfourteen/content-video.php | 6 ++-- wp-content/themes/twentyfourteen/content.php | 6 ++-- .../themes/twentyfourteen/functions.php | 6 ++-- wp-content/themes/twentyfourteen/header.php | 3 +- wp-content/themes/twentyfourteen/image.php | 2 +- .../twentyfourteen/inc/template-tags.php | 34 ++++++++++++++----- .../themes/twentyfourteen/inc/widgets.php | 2 +- wp-content/themes/twentyfourteen/index.php | 2 +- .../page-templates/contributors.php | 2 +- wp-content/themes/twentyfourteen/readme.txt | 15 ++++++-- wp-content/themes/twentyfourteen/style.css | 2 +- wp-content/themes/twentyfourteen/tag.php | 2 +- .../twentyfourteen/taxonomy-post_format.php | 2 +- 25 files changed, 82 insertions(+), 52 deletions(-) diff --git a/wp-content/themes/twentyfourteen/archive.php b/wp-content/themes/twentyfourteen/archive.php index cf8b63846..9d2ba95f8 100644 --- a/wp-content/themes/twentyfourteen/archive.php +++ b/wp-content/themes/twentyfourteen/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_Fourteen diff --git a/wp-content/themes/twentyfourteen/author.php b/wp-content/themes/twentyfourteen/author.php index 91157f6d9..2f1d47fba 100644 --- a/wp-content/themes/twentyfourteen/author.php +++ b/wp-content/themes/twentyfourteen/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_Fourteen diff --git a/wp-content/themes/twentyfourteen/category.php b/wp-content/themes/twentyfourteen/category.php index f4b2a3b6d..c193cc7b5 100644 --- a/wp-content/themes/twentyfourteen/category.php +++ b/wp-content/themes/twentyfourteen/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_Fourteen diff --git a/wp-content/themes/twentyfourteen/content-aside.php b/wp-content/themes/twentyfourteen/content-aside.php index 48d7abca1..b180826dc 100644 --- a/wp-content/themes/twentyfourteen/content-aside.php +++ b/wp-content/themes/twentyfourteen/content-aside.php @@ -19,8 +19,8 @@ <?php endif; -if ( is_single() ) : - the_title( '<h1 class="entry-title">', '</h1>' ); + if ( is_single() ) : + the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; @@ -63,4 +63,4 @@ if ( is_single() ) : </div><!-- .entry-content --> <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/content-audio.php b/wp-content/themes/twentyfourteen/content-audio.php index c700996a0..36aa5a9d2 100644 --- a/wp-content/themes/twentyfourteen/content-audio.php +++ b/wp-content/themes/twentyfourteen/content-audio.php @@ -19,8 +19,8 @@ <?php endif; -if ( is_single() ) : - the_title( '<h1 class="entry-title">', '</h1>' ); + if ( is_single() ) : + the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; @@ -63,4 +63,4 @@ if ( is_single() ) : </div><!-- .entry-content --> <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/content-featured-post.php b/wp-content/themes/twentyfourteen/content-featured-post.php index d5a16fef2..707b95702 100644 --- a/wp-content/themes/twentyfourteen/content-featured-post.php +++ b/wp-content/themes/twentyfourteen/content-featured-post.php @@ -31,4 +31,4 @@ <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?> </header><!-- .entry-header --> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/content-gallery.php b/wp-content/themes/twentyfourteen/content-gallery.php index e8c252454..2f793a8ef 100644 --- a/wp-content/themes/twentyfourteen/content-gallery.php +++ b/wp-content/themes/twentyfourteen/content-gallery.php @@ -19,8 +19,8 @@ <?php endif; -if ( is_single() ) : - the_title( '<h1 class="entry-title">', '</h1>' ); + if ( is_single() ) : + the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; @@ -63,4 +63,4 @@ if ( is_single() ) : </div><!-- .entry-content --> <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/content-image.php b/wp-content/themes/twentyfourteen/content-image.php index 70b1e04c0..5e58bf009 100644 --- a/wp-content/themes/twentyfourteen/content-image.php +++ b/wp-content/themes/twentyfourteen/content-image.php @@ -19,8 +19,8 @@ <?php endif; -if ( is_single() ) : - the_title( '<h1 class="entry-title">', '</h1>' ); + if ( is_single() ) : + the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; @@ -63,4 +63,4 @@ if ( is_single() ) : </div><!-- .entry-content --> <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/content-link.php b/wp-content/themes/twentyfourteen/content-link.php index d51d634c5..d4c7c8bdf 100644 --- a/wp-content/themes/twentyfourteen/content-link.php +++ b/wp-content/themes/twentyfourteen/content-link.php @@ -19,8 +19,8 @@ <?php endif; -if ( is_single() ) : - the_title( '<h1 class="entry-title">', '</h1>' ); + if ( is_single() ) : + the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; @@ -63,4 +63,4 @@ if ( is_single() ) : </div><!-- .entry-content --> <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/content-none.php b/wp-content/themes/twentyfourteen/content-none.php index a83e06ee4..a97f84c86 100644 --- a/wp-content/themes/twentyfourteen/content-none.php +++ b/wp-content/themes/twentyfourteen/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 some different keywords.', 'twentyfourteen' ); ?></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.', 'twentyfourteen' ); ?></p> - <?php get_search_form(); ?> + <?php get_search_form(); ?> <?php endif; ?> </div><!-- .page-content --> diff --git a/wp-content/themes/twentyfourteen/content-page.php b/wp-content/themes/twentyfourteen/content-page.php index ca8ebd9bb..5a42117ee 100644 --- a/wp-content/themes/twentyfourteen/content-page.php +++ b/wp-content/themes/twentyfourteen/content-page.php @@ -30,4 +30,4 @@ edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/content-quote.php b/wp-content/themes/twentyfourteen/content-quote.php index 27a7b169c..29e6ec37b 100644 --- a/wp-content/themes/twentyfourteen/content-quote.php +++ b/wp-content/themes/twentyfourteen/content-quote.php @@ -19,8 +19,8 @@ <?php endif; -if ( is_single() ) : - the_title( '<h1 class="entry-title">', '</h1>' ); + if ( is_single() ) : + the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; @@ -63,4 +63,4 @@ if ( is_single() ) : </div><!-- .entry-content --> <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/content-video.php b/wp-content/themes/twentyfourteen/content-video.php index 13609b64a..1c1a0efb0 100644 --- a/wp-content/themes/twentyfourteen/content-video.php +++ b/wp-content/themes/twentyfourteen/content-video.php @@ -19,8 +19,8 @@ <?php endif; -if ( is_single() ) : - the_title( '<h1 class="entry-title">', '</h1>' ); + if ( is_single() ) : + the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; @@ -63,4 +63,4 @@ if ( is_single() ) : </div><!-- .entry-content --> <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/content.php b/wp-content/themes/twentyfourteen/content.php index 2d54fc9aa..bf0536335 100644 --- a/wp-content/themes/twentyfourteen/content.php +++ b/wp-content/themes/twentyfourteen/content.php @@ -21,8 +21,8 @@ <?php endif; -if ( is_single() ) : - the_title( '<h1 class="entry-title">', '</h1>' ); + if ( is_single() ) : + the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; @@ -73,4 +73,4 @@ if ( is_single() ) : <?php endif; ?> <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> -</article><!-- #post-## --> +</article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyfourteen/functions.php b/wp-content/themes/twentyfourteen/functions.php index ea32f14e4..c017dac64 100644 --- a/wp-content/themes/twentyfourteen/functions.php +++ b/wp-content/themes/twentyfourteen/functions.php @@ -12,7 +12,7 @@ * the parent theme's file, so the child theme functions would be used. * * @link https://codex.wordpress.org/Theme_Development - * @link https://codex.wordpress.org/Child_Themes + * @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. @@ -455,8 +455,8 @@ if ( ! function_exists( 'twentyfourteen_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 ) ); } } diff --git a/wp-content/themes/twentyfourteen/header.php b/wp-content/themes/twentyfourteen/header.php index 3207e7357..88071ec9b 100644 --- a/wp-content/themes/twentyfourteen/header.php +++ b/wp-content/themes/twentyfourteen/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"> <?php if ( get_header_image() ) : ?> <div id="site-header"> diff --git a/wp-content/themes/twentyfourteen/image.php b/wp-content/themes/twentyfourteen/image.php index f0af8b83b..eb4a1658d 100644 --- a/wp-content/themes/twentyfourteen/image.php +++ b/wp-content/themes/twentyfourteen/image.php @@ -61,7 +61,7 @@ get_header(); ); ?> </div><!-- .entry-content --> - </article><!-- #post-## --> + </article><!-- #post-<?php the_ID(); ?> --> <nav id="image-navigation" class="navigation image-navigation"> <div class="nav-links"> diff --git a/wp-content/themes/twentyfourteen/inc/template-tags.php b/wp-content/themes/twentyfourteen/inc/template-tags.php index cf5debfa4..f1e952943 100644 --- a/wp-content/themes/twentyfourteen/inc/template-tags.php +++ b/wp-content/themes/twentyfourteen/inc/template-tags.php @@ -197,16 +197,16 @@ if ( ! function_exists( 'twentyfourteen_post_thumbnail' ) ) : <?php else : ?> <a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true"> - <?php - if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) { - the_post_thumbnail( 'twentyfourteen-full-width' ); - } else { - the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); - } - ?> + <?php + if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) { + the_post_thumbnail( 'twentyfourteen-full-width' ); + } else { + the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); + } + ?> </a> - <?php + <?php endif; // End is_singular() } endif; @@ -232,3 +232,21 @@ if ( ! function_exists( 'twentyfourteen_excerpt_more' ) && ! is_admin() ) : } add_filter( 'excerpt_more', 'twentyfourteen_excerpt_more' ); endif; + +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 Fourteen 2.7 + */ + function wp_body_open() { + /** + * Triggered after the opening <body> tag. + * + * @since Twenty Fourteen 2.7 + */ + do_action( 'wp_body_open' ); + } +endif; diff --git a/wp-content/themes/twentyfourteen/inc/widgets.php b/wp-content/themes/twentyfourteen/inc/widgets.php index 7ddabec38..0b99fe2ad 100644 --- a/wp-content/themes/twentyfourteen/inc/widgets.php +++ b/wp-content/themes/twentyfourteen/inc/widgets.php @@ -226,7 +226,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { <?php endif; ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> - </article><!-- #post-## --> + </article><!-- #post-<?php the_ID(); ?> --> </li> <?php endwhile; ?> diff --git a/wp-content/themes/twentyfourteen/index.php b/wp-content/themes/twentyfourteen/index.php index 0c3d5e9b1..7f6d04a0a 100644 --- a/wp-content/themes/twentyfourteen/index.php +++ b/wp-content/themes/twentyfourteen/index.php @@ -7,7 +7,7 @@ * It is used to display a page when nothing more specific matches a query, * e.g., 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_Fourteen diff --git a/wp-content/themes/twentyfourteen/page-templates/contributors.php b/wp-content/themes/twentyfourteen/page-templates/contributors.php index 6b1d19dbf..635a259c2 100644 --- a/wp-content/themes/twentyfourteen/page-templates/contributors.php +++ b/wp-content/themes/twentyfourteen/page-templates/contributors.php @@ -35,7 +35,7 @@ if ( is_front_page() && twentyfourteen_has_featured_posts() ) { edit_post_link( __( 'Edit', 'twentyfourteen' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> - </article><!-- #post-## --> + </article><!-- #post-<?php the_ID(); ?> --> <?php // If comments are open or we have at least one comment, load up the comment template. diff --git a/wp-content/themes/twentyfourteen/readme.txt b/wp-content/themes/twentyfourteen/readme.txt index c122378a9..412c23dc5 100644 --- a/wp-content/themes/twentyfourteen/readme.txt +++ b/wp-content/themes/twentyfourteen/readme.txt @@ -1,8 +1,9 @@ === Twenty Fourteen === -Contributors: the WordPress team +Contributors: wordpressdotorg Requires at least: WordPress 3.6 Tested up to: WordPress 5.0 -Stable tag: 2.5 +Requires PHP: 5.2.4 +Stable tag: 2.7 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready @@ -50,6 +51,16 @@ Source: http://www.genericons.com == Changelog == += 2.7 = +* Released: May 7, 2019 + +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.7 + += 2.6 = +* Released: February 21, 2019 + +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.6 + = 2.5 = * Released: January 9, 2019 diff --git a/wp-content/themes/twentyfourteen/style.css b/wp-content/themes/twentyfourteen/style.css index 1fc323137..85133472f 100644 --- a/wp-content/themes/twentyfourteen/style.css +++ b/wp-content/themes/twentyfourteen/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier. -Version: 2.5 +Version: 2.7 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready diff --git a/wp-content/themes/twentyfourteen/tag.php b/wp-content/themes/twentyfourteen/tag.php index 2f1a54f8d..3a3a3c5ef 100644 --- a/wp-content/themes/twentyfourteen/tag.php +++ b/wp-content/themes/twentyfourteen/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_Fourteen diff --git a/wp-content/themes/twentyfourteen/taxonomy-post_format.php b/wp-content/themes/twentyfourteen/taxonomy-post_format.php index a6f60c5f5..243e8f0c2 100644 --- a/wp-content/themes/twentyfourteen/taxonomy-post_format.php +++ b/wp-content/themes/twentyfourteen/taxonomy-post_format.php @@ -9,7 +9,7 @@ * @todo https://core.trac.wordpress.org/ticket/23257: Add plural versions of Post Format strings * and remove plurals below. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Fourteen -- GitLab