summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-11-20 16:43:13 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-11-20 16:43:13 -0500
commit099bb1ab7c867dcc4ad4dcf73591c64c5d1bd7ea (patch)
tree9bc1924797503b93986cba12e1b44df327df74a4
parentjetpack 5.3 (diff)
downloadblogs-gentoo-099bb1ab.tar.gz
blogs-gentoo-099bb1ab.tar.bz2
blogs-gentoo-099bb1ab.zip
Update twentyfourteen 2.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--themes/twentyfourteen/archive.php2
-rw-r--r--themes/twentyfourteen/author.php2
-rw-r--r--themes/twentyfourteen/category.php2
-rw-r--r--themes/twentyfourteen/comments.php20
-rw-r--r--themes/twentyfourteen/functions.php21
-rw-r--r--themes/twentyfourteen/inc/widgets.php1
-rw-r--r--themes/twentyfourteen/index.php2
-rw-r--r--themes/twentyfourteen/readme.txt11
-rw-r--r--themes/twentyfourteen/search.php2
-rw-r--r--themes/twentyfourteen/single.php2
-rw-r--r--themes/twentyfourteen/style.css30
-rw-r--r--themes/twentyfourteen/tag.php2
-rw-r--r--themes/twentyfourteen/taxonomy-post_format.php2
13 files changed, 83 insertions, 16 deletions
diff --git a/themes/twentyfourteen/archive.php b/themes/twentyfourteen/archive.php
index f4c91815..6a4deed0 100644
--- a/themes/twentyfourteen/archive.php
+++ b/themes/twentyfourteen/archive.php
@@ -50,7 +50,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/twentyfourteen/author.php b/themes/twentyfourteen/author.php
index 62d91659..a40f2090 100644
--- a/themes/twentyfourteen/author.php
+++ b/themes/twentyfourteen/author.php
@@ -49,7 +49,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/twentyfourteen/category.php b/themes/twentyfourteen/category.php
index 2b05f8db..97745ff1 100644
--- a/themes/twentyfourteen/category.php
+++ b/themes/twentyfourteen/category.php
@@ -34,7 +34,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/twentyfourteen/comments.php b/themes/twentyfourteen/comments.php
index 781c06d4..d62e91a7 100644
--- a/themes/twentyfourteen/comments.php
+++ b/themes/twentyfourteen/comments.php
@@ -24,8 +24,24 @@ if ( post_password_required() ) {
<h2 class="comments-title">
<?php
- printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyfourteen' ),
- 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', 'twentyfourteen' ), 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',
+ 'twentyfourteen'
+ ),
+ number_format_i18n( $comments_number ),
+ get_the_title()
+ );
+ }
?>
</h2>
diff --git a/themes/twentyfourteen/functions.php b/themes/twentyfourteen/functions.php
index b815e77e..2946d19d 100644
--- a/themes/twentyfourteen/functions.php
+++ b/themes/twentyfourteen/functions.php
@@ -527,6 +527,27 @@ function twentyfourteen_wp_title( $title, $sep ) {
}
add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 );
+
+/**
+ * Modifies tag cloud widget arguments to display all tags in the same font size
+ * and use list format for better accessibility.
+ *
+ * @since Twenty Fourteen 2.1
+ *
+ * @param array $args Arguments for tag cloud widget.
+ * @return array The filtered arguments for tag cloud widget.
+ */
+function twentyfourteen_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', 'twentyfourteen_widget_tag_cloud_args' );
+
+
// Implement Custom Header features.
require get_template_directory() . '/inc/custom-header.php';
diff --git a/themes/twentyfourteen/inc/widgets.php b/themes/twentyfourteen/inc/widgets.php
index ee766cb3..533f34a5 100644
--- a/themes/twentyfourteen/inc/widgets.php
+++ b/themes/twentyfourteen/inc/widgets.php
@@ -54,6 +54,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
$video_library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' );
if ( in_array( 'mediaelement', array( $video_library, $audio_library ), true ) ) {
wp_enqueue_style( 'wp-mediaelement' );
+ wp_enqueue_script( 'mediaelement-vimeo' );
wp_enqueue_script( 'wp-mediaelement' );
}
}
diff --git a/themes/twentyfourteen/index.php b/themes/twentyfourteen/index.php
index 21f48427..3f46be21 100644
--- a/themes/twentyfourteen/index.php
+++ b/themes/twentyfourteen/index.php
@@ -35,7 +35,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/twentyfourteen/readme.txt b/themes/twentyfourteen/readme.txt
index 20e7d8c0..bb027240 100644
--- a/themes/twentyfourteen/readme.txt
+++ b/themes/twentyfourteen/readme.txt
@@ -1,8 +1,8 @@
=== Twenty Fourteen ===
Contributors: the WordPress team
Requires at least: WordPress 3.6
-Tested up to: WordPress 4.9-trunk
-Stable tag: 2.0
+Tested up to: WordPress 5.0-trunk
+Stable tag: 2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
@@ -44,12 +44,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 ==
+= 2.1 =
+* Released: November 14, 2017
+
+https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.1
+
= 2.0 =
* Released: June 8, 2017
diff --git a/themes/twentyfourteen/search.php b/themes/twentyfourteen/search.php
index 3fe9bdbc..d90d88a1 100644
--- a/themes/twentyfourteen/search.php
+++ b/themes/twentyfourteen/search.php
@@ -24,7 +24,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/twentyfourteen/single.php b/themes/twentyfourteen/single.php
index e2db3b04..e089165e 100644
--- a/themes/twentyfourteen/single.php
+++ b/themes/twentyfourteen/single.php
@@ -17,7 +17,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/twentyfourteen/style.css b/themes/twentyfourteen/style.css
index b0a35544..32ed8373 100644
--- a/themes/twentyfourteen/style.css
+++ b/themes/twentyfourteen/style.css
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
-Version: 2.0
+Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
@@ -1612,7 +1612,15 @@ a.post-thumbnail:hover {
.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1),
.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1),
.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1),
-.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) {
+.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1),
+.widget-area .gallery-columns-2 figure.gallery-item:nth-of-type(2n+1),
+.widget-area .gallery-columns-3 figure.gallery-item:nth-of-type(3n+1),
+.widget-area .gallery-columns-4 figure.gallery-item:nth-of-type(4n+1),
+.widget-area .gallery-columns-5 figure.gallery-item:nth-of-type(5n+1),
+.widget-area .gallery-columns-6 figure.gallery-item:nth-of-type(6n+1),
+.widget-area .gallery-columns-7 figure.gallery-item:nth-of-type(7n+1),
+.widget-area .gallery-columns-8 figure.gallery-item:nth-of-type(8n+1),
+.widget-area .gallery-columns-9 figure.gallery-item:nth-of-type(9n+1) {
clear: left;
}
@@ -1651,7 +1659,15 @@ a.post-thumbnail:hover {
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
-.gallery-columns-9 .gallery-caption {
+.gallery-columns-9 .gallery-caption,
+.widget-area .gallery-columns-2 .gallery-caption,
+.widget-area .gallery-columns-3 .gallery-caption,
+.widget-area .gallery-columns-4 .gallery-caption,
+.widget-area .gallery-columns-5 .gallery-caption,
+.widget-area .gallery-columns-6 .gallery-caption,
+.widget-area .gallery-columns-7 .gallery-caption,
+.widget-area .gallery-columns-8 .gallery-caption,
+.widget-area .gallery-columns-9 .gallery-caption {
display: none;
}
@@ -2583,6 +2599,14 @@ a.post-thumbnail:hover {
padding-bottom: 0;
}
+.tagcloud ul {
+ list-style-type: none;
+}
+
+.tagcloud ul li {
+ display: inline-block;
+}
+
/* Recent Posts Widget */
.widget_recent_entries .post-date {
diff --git a/themes/twentyfourteen/tag.php b/themes/twentyfourteen/tag.php
index 208455de..5930d2cf 100644
--- a/themes/twentyfourteen/tag.php
+++ b/themes/twentyfourteen/tag.php
@@ -36,7 +36,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/twentyfourteen/taxonomy-post_format.php b/themes/twentyfourteen/taxonomy-post_format.php
index 2ef44a48..f7cee9f7 100644
--- a/themes/twentyfourteen/taxonomy-post_format.php
+++ b/themes/twentyfourteen/taxonomy-post_format.php
@@ -61,7 +61,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() );