summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-11-20 16:45:42 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-11-20 16:45:42 -0500
commit87db768a98c32c778ddc9f35bd07f789fac72213 (patch)
tree487a5faca24fb4ccc7cf9f66b12ec4dff79f1ddf /themes/twentyfifteen
parentUpdate twentyfourteen 2.1 (diff)
downloadblogs-gentoo-87db768a98c32c778ddc9f35bd07f789fac72213.tar.gz
blogs-gentoo-87db768a98c32c778ddc9f35bd07f789fac72213.tar.bz2
blogs-gentoo-87db768a98c32c778ddc9f35bd07f789fac72213.zip
Update twentyfifteen 1.9
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'themes/twentyfifteen')
-rw-r--r--themes/twentyfifteen/comments.php20
-rw-r--r--themes/twentyfifteen/css/ie.css2
-rw-r--r--themes/twentyfifteen/functions.php20
-rw-r--r--themes/twentyfifteen/inc/template-tags.php2
-rw-r--r--themes/twentyfifteen/readme.txt13
-rw-r--r--themes/twentyfifteen/single.php2
-rw-r--r--themes/twentyfifteen/style.css9
7 files changed, 58 insertions, 10 deletions
diff --git a/themes/twentyfifteen/comments.php b/themes/twentyfifteen/comments.php
index 12b892f6..6b97ec39 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 53de092d..74ead6a5 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 8ae7e1da..b6161927 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 f4de1d58..7b4ffeb7 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 04b717d7..16e131a5 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 afbb7b5e..fda8b5ec 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 a30fa960..77c73116 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