From 87db768a98c32c778ddc9f35bd07f789fac72213 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Mon, 20 Nov 2017 16:45:42 -0500 Subject: Update twentyfifteen 1.9 Signed-off-by: Anthony G. Basile --- 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 12b892f6..6b97ec39 100644 --- a/themes/twentyfifteen/comments.php +++ b/themes/twentyfifteen/comments.php @@ -25,8 +25,24 @@ if ( post_password_required() ) {

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 @@ -385,6 +385,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. * 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( '%1$s %2$s', _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 -- cgit v1.2.3