1 |
commit: fcb506212cbea55b2bd080eb918d42fb4781bfef |
2 |
Author: Yury German <blueknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 22 05:11:37 2019 +0000 |
4 |
Commit: Yury German <blueknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 22 05:11:37 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=fcb50621 |
7 |
|
8 |
Updating Theme twentysixteen |
9 |
|
10 |
twentysixteen.2.0 |
11 |
|
12 |
Signed-off-by: Yury German <blueknight <AT> gentoo.org> |
13 |
|
14 |
themes/twentysixteen/functions.php | 4 ++-- |
15 |
themes/twentysixteen/header.php | 1 + |
16 |
themes/twentysixteen/image.php | 2 +- |
17 |
themes/twentysixteen/inc/template-tags.php | 18 ++++++++++++++++++ |
18 |
themes/twentysixteen/readme.txt | 10 ++++++++-- |
19 |
themes/twentysixteen/style.css | 2 +- |
20 |
themes/twentysixteen/template-parts/content-page.php | 2 +- |
21 |
themes/twentysixteen/template-parts/content-search.php | 2 +- |
22 |
themes/twentysixteen/template-parts/content-single.php | 2 +- |
23 |
themes/twentysixteen/template-parts/content.php | 2 +- |
24 |
10 files changed, 35 insertions(+), 10 deletions(-) |
25 |
|
26 |
diff --git a/themes/twentysixteen/functions.php b/themes/twentysixteen/functions.php |
27 |
index 2c47a2d2..68e4a5ef 100644 |
28 |
--- a/themes/twentysixteen/functions.php |
29 |
+++ b/themes/twentysixteen/functions.php |
30 |
@@ -12,7 +12,7 @@ |
31 |
* the parent theme's file, so the child theme functions would be used. |
32 |
* |
33 |
* @link https://codex.wordpress.org/Theme_Development |
34 |
- * @link https://codex.wordpress.org/Child_Themes |
35 |
+ * @link https://developer.wordpress.org/themes/advanced-topics/child-themes/ |
36 |
* |
37 |
* Functions that are not pluggable (not wrapped in function_exists()) are |
38 |
* instead attached to a filter or action hook. |
39 |
@@ -81,7 +81,7 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) : |
40 |
/* |
41 |
* Enable support for Post Thumbnails on posts and pages. |
42 |
* |
43 |
- * @link https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails |
44 |
+ * @link https://developer.wordpress.org/reference/functions/add_theme_support/#post-thumbnails |
45 |
*/ |
46 |
add_theme_support( 'post-thumbnails' ); |
47 |
set_post_thumbnail_size( 1200, 9999 ); |
48 |
|
49 |
diff --git a/themes/twentysixteen/header.php b/themes/twentysixteen/header.php |
50 |
index f264ac2c..a5cfee6a 100644 |
51 |
--- a/themes/twentysixteen/header.php |
52 |
+++ b/themes/twentysixteen/header.php |
53 |
@@ -22,6 +22,7 @@ |
54 |
</head> |
55 |
|
56 |
<body <?php body_class(); ?>> |
57 |
+<?php wp_body_open(); ?> |
58 |
<div id="page" class="site"> |
59 |
<div class="site-inner"> |
60 |
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentysixteen' ); ?></a> |
61 |
|
62 |
diff --git a/themes/twentysixteen/image.php b/themes/twentysixteen/image.php |
63 |
index 5fcbb901..ea64a146 100644 |
64 |
--- a/themes/twentysixteen/image.php |
65 |
+++ b/themes/twentysixteen/image.php |
66 |
@@ -93,7 +93,7 @@ get_header(); ?> |
67 |
); |
68 |
?> |
69 |
</footer><!-- .entry-footer --> |
70 |
- </article><!-- #post-## --> |
71 |
+ </article><!-- #post-<?php the_ID(); ?> --> |
72 |
|
73 |
<?php |
74 |
// If comments are open or we have at least one comment, load up the comment template. |
75 |
|
76 |
diff --git a/themes/twentysixteen/inc/template-tags.php b/themes/twentysixteen/inc/template-tags.php |
77 |
index caeed1c5..55578bea 100644 |
78 |
--- a/themes/twentysixteen/inc/template-tags.php |
79 |
+++ b/themes/twentysixteen/inc/template-tags.php |
80 |
@@ -264,3 +264,21 @@ if ( ! function_exists( 'twentysixteen_the_custom_logo' ) ) : |
81 |
} |
82 |
} |
83 |
endif; |
84 |
+ |
85 |
+if ( ! function_exists( 'wp_body_open' ) ) : |
86 |
+ /** |
87 |
+ * Fire the wp_body_open action. |
88 |
+ * |
89 |
+ * Added for backwards compatibility to support pre 5.2.0 WordPress versions. |
90 |
+ * |
91 |
+ * @since Twenty Sixteen 2.0 |
92 |
+ */ |
93 |
+ function wp_body_open() { |
94 |
+ /** |
95 |
+ * Triggered after the opening <body> tag. |
96 |
+ * |
97 |
+ * @since Twenty Sixteen 2.0 |
98 |
+ */ |
99 |
+ do_action( 'wp_body_open' ); |
100 |
+ } |
101 |
+endif; |
102 |
|
103 |
diff --git a/themes/twentysixteen/readme.txt b/themes/twentysixteen/readme.txt |
104 |
index dcc28905..24b3428c 100644 |
105 |
--- a/themes/twentysixteen/readme.txt |
106 |
+++ b/themes/twentysixteen/readme.txt |
107 |
@@ -1,8 +1,9 @@ |
108 |
=== Twenty Sixteen === |
109 |
-Contributors: the WordPress team |
110 |
+Contributors: wordpressdotorg |
111 |
Requires at least: WordPress 4.4 |
112 |
Tested up to: WordPress 5.0 |
113 |
-Version: 1.9 |
114 |
+Requires PHP: 5.2.4 |
115 |
+Version: 2.0 |
116 |
License: GPLv2 or later |
117 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
118 |
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 |
119 |
@@ -56,6 +57,11 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch |
120 |
|
121 |
== Changelog == |
122 |
|
123 |
+= 2.0 = |
124 |
+* Released: May 7, 2019 |
125 |
+ |
126 |
+https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.0 |
127 |
+ |
128 |
= 1.9 = |
129 |
* Released: February 21, 2019 |
130 |
|
131 |
|
132 |
diff --git a/themes/twentysixteen/style.css b/themes/twentysixteen/style.css |
133 |
index 90c8b4c4..ab7e95da 100644 |
134 |
--- a/themes/twentysixteen/style.css |
135 |
+++ b/themes/twentysixteen/style.css |
136 |
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentysixteen/ |
137 |
Author: the WordPress team |
138 |
Author URI: https://wordpress.org/ |
139 |
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. |
140 |
-Version: 1.9 |
141 |
+Version: 2.0 |
142 |
License: GNU General Public License v2 or later |
143 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
144 |
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 |
145 |
|
146 |
diff --git a/themes/twentysixteen/template-parts/content-page.php b/themes/twentysixteen/template-parts/content-page.php |
147 |
index d1ee87c6..689972c0 100644 |
148 |
--- a/themes/twentysixteen/template-parts/content-page.php |
149 |
+++ b/themes/twentysixteen/template-parts/content-page.php |
150 |
@@ -44,4 +44,4 @@ |
151 |
); |
152 |
?> |
153 |
|
154 |
-</article><!-- #post-## --> |
155 |
+</article><!-- #post-<?php the_ID(); ?> --> |
156 |
|
157 |
diff --git a/themes/twentysixteen/template-parts/content-search.php b/themes/twentysixteen/template-parts/content-search.php |
158 |
index c4667c6b..7d587f65 100644 |
159 |
--- a/themes/twentysixteen/template-parts/content-search.php |
160 |
+++ b/themes/twentysixteen/template-parts/content-search.php |
161 |
@@ -49,5 +49,5 @@ |
162 |
?> |
163 |
|
164 |
<?php endif; ?> |
165 |
-</article><!-- #post-## --> |
166 |
+</article><!-- #post-<?php the_ID(); ?> --> |
167 |
|
168 |
|
169 |
diff --git a/themes/twentysixteen/template-parts/content-single.php b/themes/twentysixteen/template-parts/content-single.php |
170 |
index d1061b27..23e18373 100644 |
171 |
--- a/themes/twentysixteen/template-parts/content-single.php |
172 |
+++ b/themes/twentysixteen/template-parts/content-single.php |
173 |
@@ -52,4 +52,4 @@ |
174 |
); |
175 |
?> |
176 |
</footer><!-- .entry-footer --> |
177 |
-</article><!-- #post-## --> |
178 |
+</article><!-- #post-<?php the_ID(); ?> --> |
179 |
|
180 |
diff --git a/themes/twentysixteen/template-parts/content.php b/themes/twentysixteen/template-parts/content.php |
181 |
index cf88417f..03b4cfb6 100644 |
182 |
--- a/themes/twentysixteen/template-parts/content.php |
183 |
+++ b/themes/twentysixteen/template-parts/content.php |
184 |
@@ -58,4 +58,4 @@ |
185 |
); |
186 |
?> |
187 |
</footer><!-- .entry-footer --> |
188 |
-</article><!-- #post-## --> |
189 |
+</article><!-- #post-<?php the_ID(); ?> --> |