commit:     87db768a98c32c778ddc9f35bd07f789fac72213
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 20 21:45:42 2017 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Nov 20 21:45:42 2017 +0000
URL:        https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=87db768a

Update twentyfifteen 1.9

Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>

 themes/twentyfifteen/comments.php          | 20 ++++++++++++++++++--
 themes/twentyfifteen/css/ie.css            |  2 +-
 themes/twentyfifteen/functions.php         | 20 ++++++++++++++++++++
 themes/twentyfifteen/inc/template-tags.php |  2 +-
 themes/twentyfifteen/readme.txt            | 13 +++++++++----
 themes/twentyfifteen/single.php            |  2 +-
 themes/twentyfifteen/style.css             |  9 ++++++++-
 7 files changed, 58 insertions(+), 10 deletions(-)

diff --git a/themes/twentyfifteen/comments.php 
b/themes/twentyfifteen/comments.php
index 12b892f..6b97ec3 100644
--- a/themes/twentyfifteen/comments.php
+++ b/themes/twentyfifteen/comments.php
@@ -25,8 +25,24 @@ if ( post_password_required() ) {
        <?php if ( have_comments() ) : ?>
                <h2 class="comments-title">
                        <?php
-                               printf( _nx( 'One thought on 
&ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', 
get_comments_number(), 'comments title', 'twentyfifteen' ),
-                                       number_format_i18n( 
get_comments_number() ), get_the_title() );
+                               $comments_number = get_comments_number();
+                               if ( '1' === $comments_number ) {
+                                       /* translators: %s: post title */
+                                       printf( _x( 'One thought on 
&ldquo;%s&rdquo;', 'comments title', 'twentyfifteen' ), get_the_title() );
+                               } else {
+                                       printf(
+                                               /* translators: 1: number of 
comments, 2: post title */
+                                               _nx(
+                                                       '%1$s thought on 
&ldquo;%2$s&rdquo;',
+                                                       '%1$s thoughts on 
&ldquo;%2$s&rdquo;',
+                                                       $comments_number,
+                                                       'comments title',
+                                                       'twentyfifteen'
+                                               ),
+                                               number_format_i18n( 
$comments_number ),
+                                               get_the_title()
+                                       );
+                               }
                        ?>
                </h2>
 

diff --git a/themes/twentyfifteen/css/ie.css b/themes/twentyfifteen/css/ie.css
index 53de092..74ead6a 100644
--- a/themes/twentyfifteen/css/ie.css
+++ b/themes/twentyfifteen/css/ie.css
@@ -860,7 +860,7 @@ video {
 }
 
 .rtl blockquote.alignright,
-.rtl .wp-caption.alignright
+.rtl .wp-caption.alignright,
 .rtl img.alignright {
        margin: 0.4211em 0 1.6842em 1.6842em;
 }

diff --git a/themes/twentyfifteen/functions.php 
b/themes/twentyfifteen/functions.php
index 8ae7e1d..b616192 100644
--- a/themes/twentyfifteen/functions.php
+++ b/themes/twentyfifteen/functions.php
@@ -386,6 +386,26 @@ function twentyfifteen_search_form_modify( $html ) {
 add_filter( 'get_search_form', 'twentyfifteen_search_form_modify' );
 
 /**
+ * Modifies tag cloud widget arguments to display all tags in the same font 
size
+ * and use list format for better accessibility.
+ *
+ * @since Twenty Fifteen 1.9
+ *
+ * @param array $args Arguments for tag cloud widget.
+ * @return array The filtered arguments for tag cloud widget.
+ */
+function twentyfifteen_widget_tag_cloud_args( $args ) {
+       $args['largest']  = 22;
+       $args['smallest'] = 8;
+       $args['unit']     = 'pt';
+       $args['format']   = 'list';
+
+       return $args;
+}
+add_filter( 'widget_tag_cloud_args', 'twentyfifteen_widget_tag_cloud_args' );
+
+
+/**
  * Implement the Custom Header feature.
  *
  * @since Twenty Fifteen 1.0

diff --git a/themes/twentyfifteen/inc/template-tags.php 
b/themes/twentyfifteen/inc/template-tags.php
index f4de1d5..7b4ffeb 100644
--- a/themes/twentyfifteen/inc/template-tags.php
+++ b/themes/twentyfifteen/inc/template-tags.php
@@ -97,7 +97,7 @@ function twentyfifteen_entry_meta() {
                }
 
                $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list 
items, there is a space after the comma.', 'twentyfifteen' ) );
-               if ( $tags_list ) {
+               if ( $tags_list && ! is_wp_error( $tags_list ) ) {
                        printf( '<span class="tags-links"><span 
class="screen-reader-text">%1$s </span>%2$s</span>',
                                _x( 'Tags', 'Used before tag names.', 
'twentyfifteen' ),
                                $tags_list

diff --git a/themes/twentyfifteen/readme.txt b/themes/twentyfifteen/readme.txt
index 04b717d..16e131a 100644
--- a/themes/twentyfifteen/readme.txt
+++ b/themes/twentyfifteen/readme.txt
@@ -1,8 +1,8 @@
 === Twenty Fifteen ===
 Contributors: the WordPress team
 Requires at least: WordPress 4.1
-Tested up to: WordPress 4.9-trunk
-Version: 1.8
+Tested up to: WordPress 5.0-trunk
+Version: 1.9
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 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
@@ -30,7 +30,7 @@ For more information about Twenty Fifteen please go to 
https://codex.wordpress.o
 
 == Copyright ==
 
-Twenty Fifteen WordPress Theme, Copyright 2014-2016 WordPress.org & 
Automattic.com
+Twenty Fifteen WordPress Theme, Copyright 2014-2017 WordPress.org & 
Automattic.com
 Twenty Fifteen is distributed under the terms of the GNU GPL
 
 This program is free software: you can redistribute it and/or modify
@@ -49,12 +49,17 @@ HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas
 Licenses: MIT/GPL2
 Source: https://github.com/aFarkas/html5shiv
 
-Genericons icon font, Copyright 2013-2016 Automattic.com
+Genericons icon font, Copyright 2013-2017 Automattic.com
 License: GNU GPL, Version 2 (or later)
 Source: http://www.genericons.com
 
 == Changelog ==
 
+= 1.9 =
+* Released: November 14, 2017
+
+https://codex.wordpress.org/Twenty_Fifteen_Theme_Changelog#Version_1.9
+
 = 1.8 =
 * Released: June 8, 2017
 

diff --git a/themes/twentyfifteen/single.php b/themes/twentyfifteen/single.php
index afbb7b5..fda8b5e 100644
--- a/themes/twentyfifteen/single.php
+++ b/themes/twentyfifteen/single.php
@@ -18,7 +18,7 @@ get_header(); ?>
 
                        /*
                         * Include the post format-specific template for the 
content. If you want to
-                        * use this in a child theme, then include a file 
called called content-___.php
+                        * use this in a child theme, then include a file 
called content-___.php
                         * (where ___ is the post format) and that will be used 
instead.
                         */
                        get_template_part( 'content', get_post_format() );

diff --git a/themes/twentyfifteen/style.css b/themes/twentyfifteen/style.css
index a30fa96..77c7311 100644
--- a/themes/twentyfifteen/style.css
+++ b/themes/twentyfifteen/style.css
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfifteen/
 Author: the WordPress team
 Author URI: https://wordpress.org/
 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.
-Version: 1.8
+Version: 1.9
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 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
@@ -1559,6 +1559,13 @@ img.aligncenter {
        margin-left: 1.6em;
 }
 
+.tagcloud ul {
+       list-style-type: none;
+}
+
+.tagcloud ul li {
+       display: inline-block;
+}
 
 /**
  * 12.0 Content

Reply via email to