Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/blogs-gentoo:master commit in: themes/twentyfifteen/inc/, themes/twentyfifteen/, themes/twentyfifteen/css/
Date: Mon, 20 Nov 2017 21:47:10
Message-Id: 1511214342.87db768a98c32c778ddc9f35bd07f789fac72213.blueness@gentoo
1 commit: 87db768a98c32c778ddc9f35bd07f789fac72213
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 20 21:45:42 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 20 21:45:42 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=87db768a
7
8 Update twentyfifteen 1.9
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11
12 themes/twentyfifteen/comments.php | 20 ++++++++++++++++++--
13 themes/twentyfifteen/css/ie.css | 2 +-
14 themes/twentyfifteen/functions.php | 20 ++++++++++++++++++++
15 themes/twentyfifteen/inc/template-tags.php | 2 +-
16 themes/twentyfifteen/readme.txt | 13 +++++++++----
17 themes/twentyfifteen/single.php | 2 +-
18 themes/twentyfifteen/style.css | 9 ++++++++-
19 7 files changed, 58 insertions(+), 10 deletions(-)
20
21 diff --git a/themes/twentyfifteen/comments.php b/themes/twentyfifteen/comments.php
22 index 12b892f..6b97ec3 100644
23 --- a/themes/twentyfifteen/comments.php
24 +++ b/themes/twentyfifteen/comments.php
25 @@ -25,8 +25,24 @@ if ( post_password_required() ) {
26 <?php if ( have_comments() ) : ?>
27 <h2 class="comments-title">
28 <?php
29 - printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'twentyfifteen' ),
30 - number_format_i18n( get_comments_number() ), get_the_title() );
31 + $comments_number = get_comments_number();
32 + if ( '1' === $comments_number ) {
33 + /* translators: %s: post title */
34 + printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentyfifteen' ), get_the_title() );
35 + } else {
36 + printf(
37 + /* translators: 1: number of comments, 2: post title */
38 + _nx(
39 + '%1$s thought on &ldquo;%2$s&rdquo;',
40 + '%1$s thoughts on &ldquo;%2$s&rdquo;',
41 + $comments_number,
42 + 'comments title',
43 + 'twentyfifteen'
44 + ),
45 + number_format_i18n( $comments_number ),
46 + get_the_title()
47 + );
48 + }
49 ?>
50 </h2>
51
52
53 diff --git a/themes/twentyfifteen/css/ie.css b/themes/twentyfifteen/css/ie.css
54 index 53de092..74ead6a 100644
55 --- a/themes/twentyfifteen/css/ie.css
56 +++ b/themes/twentyfifteen/css/ie.css
57 @@ -860,7 +860,7 @@ video {
58 }
59
60 .rtl blockquote.alignright,
61 -.rtl .wp-caption.alignright
62 +.rtl .wp-caption.alignright,
63 .rtl img.alignright {
64 margin: 0.4211em 0 1.6842em 1.6842em;
65 }
66
67 diff --git a/themes/twentyfifteen/functions.php b/themes/twentyfifteen/functions.php
68 index 8ae7e1d..b616192 100644
69 --- a/themes/twentyfifteen/functions.php
70 +++ b/themes/twentyfifteen/functions.php
71 @@ -386,6 +386,26 @@ function twentyfifteen_search_form_modify( $html ) {
72 add_filter( 'get_search_form', 'twentyfifteen_search_form_modify' );
73
74 /**
75 + * Modifies tag cloud widget arguments to display all tags in the same font size
76 + * and use list format for better accessibility.
77 + *
78 + * @since Twenty Fifteen 1.9
79 + *
80 + * @param array $args Arguments for tag cloud widget.
81 + * @return array The filtered arguments for tag cloud widget.
82 + */
83 +function twentyfifteen_widget_tag_cloud_args( $args ) {
84 + $args['largest'] = 22;
85 + $args['smallest'] = 8;
86 + $args['unit'] = 'pt';
87 + $args['format'] = 'list';
88 +
89 + return $args;
90 +}
91 +add_filter( 'widget_tag_cloud_args', 'twentyfifteen_widget_tag_cloud_args' );
92 +
93 +
94 +/**
95 * Implement the Custom Header feature.
96 *
97 * @since Twenty Fifteen 1.0
98
99 diff --git a/themes/twentyfifteen/inc/template-tags.php b/themes/twentyfifteen/inc/template-tags.php
100 index f4de1d5..7b4ffeb 100644
101 --- a/themes/twentyfifteen/inc/template-tags.php
102 +++ b/themes/twentyfifteen/inc/template-tags.php
103 @@ -97,7 +97,7 @@ function twentyfifteen_entry_meta() {
104 }
105
106 $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) );
107 - if ( $tags_list ) {
108 + if ( $tags_list && ! is_wp_error( $tags_list ) ) {
109 printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
110 _x( 'Tags', 'Used before tag names.', 'twentyfifteen' ),
111 $tags_list
112
113 diff --git a/themes/twentyfifteen/readme.txt b/themes/twentyfifteen/readme.txt
114 index 04b717d..16e131a 100644
115 --- a/themes/twentyfifteen/readme.txt
116 +++ b/themes/twentyfifteen/readme.txt
117 @@ -1,8 +1,8 @@
118 === Twenty Fifteen ===
119 Contributors: the WordPress team
120 Requires at least: WordPress 4.1
121 -Tested up to: WordPress 4.9-trunk
122 -Version: 1.8
123 +Tested up to: WordPress 5.0-trunk
124 +Version: 1.9
125 License: GPLv2 or later
126 License URI: http://www.gnu.org/licenses/gpl-2.0.html
127 Tags: blog, two-columns, left-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
128 @@ -30,7 +30,7 @@ For more information about Twenty Fifteen please go to https://codex.wordpress.o
129
130 == Copyright ==
131
132 -Twenty Fifteen WordPress Theme, Copyright 2014-2016 WordPress.org & Automattic.com
133 +Twenty Fifteen WordPress Theme, Copyright 2014-2017 WordPress.org & Automattic.com
134 Twenty Fifteen is distributed under the terms of the GNU GPL
135
136 This program is free software: you can redistribute it and/or modify
137 @@ -49,12 +49,17 @@ HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas
138 Licenses: MIT/GPL2
139 Source: https://github.com/aFarkas/html5shiv
140
141 -Genericons icon font, Copyright 2013-2016 Automattic.com
142 +Genericons icon font, Copyright 2013-2017 Automattic.com
143 License: GNU GPL, Version 2 (or later)
144 Source: http://www.genericons.com
145
146 == Changelog ==
147
148 += 1.9 =
149 +* Released: November 14, 2017
150 +
151 +https://codex.wordpress.org/Twenty_Fifteen_Theme_Changelog#Version_1.9
152 +
153 = 1.8 =
154 * Released: June 8, 2017
155
156
157 diff --git a/themes/twentyfifteen/single.php b/themes/twentyfifteen/single.php
158 index afbb7b5..fda8b5e 100644
159 --- a/themes/twentyfifteen/single.php
160 +++ b/themes/twentyfifteen/single.php
161 @@ -18,7 +18,7 @@ get_header(); ?>
162
163 /*
164 * Include the post format-specific template for the content. If you want to
165 - * use this in a child theme, then include a file called called content-___.php
166 + * use this in a child theme, then include a file called content-___.php
167 * (where ___ is the post format) and that will be used instead.
168 */
169 get_template_part( 'content', get_post_format() );
170
171 diff --git a/themes/twentyfifteen/style.css b/themes/twentyfifteen/style.css
172 index a30fa96..77c7311 100644
173 --- a/themes/twentyfifteen/style.css
174 +++ b/themes/twentyfifteen/style.css
175 @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfifteen/
176 Author: the WordPress team
177 Author URI: https://wordpress.org/
178 Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
179 -Version: 1.8
180 +Version: 1.9
181 License: GNU General Public License v2 or later
182 License URI: http://www.gnu.org/licenses/gpl-2.0.html
183 Tags: blog, two-columns, left-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
184 @@ -1559,6 +1559,13 @@ img.aligncenter {
185 margin-left: 1.6em;
186 }
187
188 +.tagcloud ul {
189 + list-style-type: none;
190 +}
191 +
192 +.tagcloud ul li {
193 + display: inline-block;
194 +}
195
196 /**
197 * 12.0 Content