summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2019-05-22 01:11:37 -0400
committerYury German <blueknight@gentoo.org>2019-05-22 01:11:37 -0400
commitfcb506212cbea55b2bd080eb918d42fb4781bfef (patch)
tree38021e5450de5d99b7fc5650cfe219d969ef3c81 /themes/twentysixteen
parentAdding Plugins (diff)
downloadblogs-gentoo-fcb506212cbea55b2bd080eb918d42fb4781bfef.tar.gz
blogs-gentoo-fcb506212cbea55b2bd080eb918d42fb4781bfef.tar.bz2
blogs-gentoo-fcb506212cbea55b2bd080eb918d42fb4781bfef.zip
Updating Theme twentysixteen
twentysixteen.2.0 Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'themes/twentysixteen')
-rw-r--r--themes/twentysixteen/functions.php4
-rw-r--r--themes/twentysixteen/header.php1
-rw-r--r--themes/twentysixteen/image.php2
-rw-r--r--themes/twentysixteen/inc/template-tags.php18
-rw-r--r--themes/twentysixteen/readme.txt10
-rw-r--r--themes/twentysixteen/style.css2
-rw-r--r--themes/twentysixteen/template-parts/content-page.php2
-rw-r--r--themes/twentysixteen/template-parts/content-search.php2
-rw-r--r--themes/twentysixteen/template-parts/content-single.php2
-rw-r--r--themes/twentysixteen/template-parts/content.php2
10 files changed, 35 insertions, 10 deletions
diff --git a/themes/twentysixteen/functions.php b/themes/twentysixteen/functions.php
index 2c47a2d2..68e4a5ef 100644
--- a/themes/twentysixteen/functions.php
+++ b/themes/twentysixteen/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.
@@ -81,7 +81,7 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
/*
* Enable support for Post Thumbnails on posts and pages.
*
- * @link https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
+ * @link https://developer.wordpress.org/reference/functions/add_theme_support/#post-thumbnails
*/
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 1200, 9999 );
diff --git a/themes/twentysixteen/header.php b/themes/twentysixteen/header.php
index f264ac2c..a5cfee6a 100644
--- a/themes/twentysixteen/header.php
+++ b/themes/twentysixteen/header.php
@@ -22,6 +22,7 @@
</head>
<body <?php body_class(); ?>>
+<?php wp_body_open(); ?>
<div id="page" class="site">
<div class="site-inner">
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentysixteen' ); ?></a>
diff --git a/themes/twentysixteen/image.php b/themes/twentysixteen/image.php
index 5fcbb901..ea64a146 100644
--- a/themes/twentysixteen/image.php
+++ b/themes/twentysixteen/image.php
@@ -93,7 +93,7 @@ get_header(); ?>
);
?>
</footer><!-- .entry-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/themes/twentysixteen/inc/template-tags.php b/themes/twentysixteen/inc/template-tags.php
index caeed1c5..55578bea 100644
--- a/themes/twentysixteen/inc/template-tags.php
+++ b/themes/twentysixteen/inc/template-tags.php
@@ -264,3 +264,21 @@ if ( ! function_exists( 'twentysixteen_the_custom_logo' ) ) :
}
}
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 Sixteen 2.0
+ */
+ function wp_body_open() {
+ /**
+ * Triggered after the opening <body> tag.
+ *
+ * @since Twenty Sixteen 2.0
+ */
+ do_action( 'wp_body_open' );
+ }
+endif;
diff --git a/themes/twentysixteen/readme.txt b/themes/twentysixteen/readme.txt
index dcc28905..24b3428c 100644
--- a/themes/twentysixteen/readme.txt
+++ b/themes/twentysixteen/readme.txt
@@ -1,8 +1,9 @@
=== Twenty Sixteen ===
-Contributors: the WordPress team
+Contributors: wordpressdotorg
Requires at least: WordPress 4.4
Tested up to: WordPress 5.0
-Version: 1.9
+Requires PHP: 5.2.4
+Version: 2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
@@ -56,6 +57,11 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch
== Changelog ==
+= 2.0 =
+* Released: May 7, 2019
+
+https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.0
+
= 1.9 =
* Released: February 21, 2019
diff --git a/themes/twentysixteen/style.css b/themes/twentysixteen/style.css
index 90c8b4c4..ab7e95da 100644
--- a/themes/twentysixteen/style.css
+++ b/themes/twentysixteen/style.css
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentysixteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
-Version: 1.9
+Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
diff --git a/themes/twentysixteen/template-parts/content-page.php b/themes/twentysixteen/template-parts/content-page.php
index d1ee87c6..689972c0 100644
--- a/themes/twentysixteen/template-parts/content-page.php
+++ b/themes/twentysixteen/template-parts/content-page.php
@@ -44,4 +44,4 @@
);
?>
-</article><!-- #post-## -->
+</article><!-- #post-<?php the_ID(); ?> -->
diff --git a/themes/twentysixteen/template-parts/content-search.php b/themes/twentysixteen/template-parts/content-search.php
index c4667c6b..7d587f65 100644
--- a/themes/twentysixteen/template-parts/content-search.php
+++ b/themes/twentysixteen/template-parts/content-search.php
@@ -49,5 +49,5 @@
?>
<?php endif; ?>
-</article><!-- #post-## -->
+</article><!-- #post-<?php the_ID(); ?> -->
diff --git a/themes/twentysixteen/template-parts/content-single.php b/themes/twentysixteen/template-parts/content-single.php
index d1061b27..23e18373 100644
--- a/themes/twentysixteen/template-parts/content-single.php
+++ b/themes/twentysixteen/template-parts/content-single.php
@@ -52,4 +52,4 @@
);
?>
</footer><!-- .entry-footer -->
-</article><!-- #post-## -->
+</article><!-- #post-<?php the_ID(); ?> -->
diff --git a/themes/twentysixteen/template-parts/content.php b/themes/twentysixteen/template-parts/content.php
index cf88417f..03b4cfb6 100644
--- a/themes/twentysixteen/template-parts/content.php
+++ b/themes/twentysixteen/template-parts/content.php
@@ -58,4 +58,4 @@
);
?>
</footer><!-- .entry-footer -->
-</article><!-- #post-## -->
+</article><!-- #post-<?php the_ID(); ?> -->