diff --git a/wp-content/themes/twentyfourteen/archive.php b/wp-content/themes/twentyfourteen/archive.php index cf8b63846784f4add118518961a85d41cb48413c..9d2ba95f87aacb24fd3c8aae41afdd6d5baec096 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 91157f6d989d53f4474c516ed51d3018fb279e14..2f1d47fba5702a485b74113819721edf8a8eb13a 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 f4b2a3b6d165f9b3125cf97936e9b7499569beba..c193cc7b594bbe27df00ee284d1d2e3c1651b6b6 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 48d7abca19177df5e49213438c9f1a0d9c675d4d..b180826dc882c69b85fd48b0222959c1038bd7ea 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 c700996a08c94db127885215a61eec891c2c85ad..36aa5a9d289e92af025b8d01f9fce3cc53d5eaf7 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 d5a16fef203ee73d4e21f3f8106cf682978c3204..707b957029695605d84acccdc0ee1937399775a1 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 e8c252454c05dfbb20740776154cb1986e1a243c..2f793a8efcec6d2d59b0483da35d63e0cb7f9317 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 70b1e04c09f2cb3a659a6b4015a4faa8759f41e4..5e58bf00973aeeaf45a4aa9875cd9e11febad54f 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 d51d634c5eccd776baee039c864908f13005efb1..d4c7c8bdfa5c3f4838254e7a8a0a8d2c2f5bc546 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 a83e06ee4af555d92ed759e4d2f360a0b047c1a4..a97f84c86628aca36fdc2da75c5a9eb361f71872 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 ca8ebd9bb47a01ceef8d2acab099cf59ae08ca54..5a42117ee04aaf5e2f131bcfc00a20449df0fe91 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 27a7b169ca4e3e3cecba5fb82028c42494f57322..29e6ec37be51b396fe26ff7c70a7e6e8a10d142e 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 13609b64a602696ece8eee618e0c7c0fa137de5e..1c1a0efb085bbddaf83674169c55e834712fdaf8 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 2d54fc9aa54dc05588960eaf0a038928ae6ed110..bf05363359ea9a2c634c8eee24959ede8dfed89e 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 ea32f14e4f9b52758908f26a29cb3da2e3fa69a8..c017dac6442104f1fd2382ff8e573b5f3002e511 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 3207e7357433f0fe6216f832d2bb68b75ace5502..88071ec9b9e8fa160e9646219ec4a9cec6b14684 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 f0af8b83bdb166e64efee80127b3afb1ffcce04c..eb4a1658d034b948fb5213437cc9832de8f32e6e 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 cf5debfa4b970f8c85b6373f269c0eb56722e4b2..f1e952943b3bfde549063ef9941d5b2b2cc36bc8 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 7ddabec386a9bdc72dd8fe0dd4ab83b932ce2c99..0b99fe2adbd29ddb9c580bc2b1b063d0f303e3b8 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 0c3d5e9b12361554cfe5d2aa97db296b7da361be..7f6d04a0a6aa214e17109373d4b0c75d00236450 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 6b1d19dbff4ef46403ecd41790b1eed5f7fb97b1..635a259c27c750eb4301714301a79133b22a028a 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 c122378a9e087430ede7ebe5f8d9ae778c1ff1b7..412c23dc5d5ab7f6394266f5afe8d020f3a49b6f 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 1fc323137591a111997c37e7f9654ec31cfca4fd..85133472f59dc2eae20458a47d6b103130a64901 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 2f1a54f8da8c9249277d00f988d41368bf248561..3a3a3c5efad10e50184065c8e6172ca6cd5b0879 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 a6f60c5f5f680a17fb4a5bda945e1eb0f762c70a..243e8f0c29f4f2fd136f9c57c3566a18501281b9 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