From 17aa9f0c08a4f6192150be0e7ef04305fe5faeb2 Mon Sep 17 00:00:00 2001 From: lucha <lucha@paranoici.org> Date: Thu, 23 Nov 2017 15:00:09 -0800 Subject: [PATCH] [auto] theme: twentyten 2.4 --- wp-content/themes/twentyten/footer.php | 2 +- wp-content/themes/twentyten/functions.php | 21 +++++- .../themes/twentyten/languages/twentyten.pot | 70 ++++++++----------- wp-content/themes/twentyten/readme.txt | 9 ++- wp-content/themes/twentyten/rtl.css | 5 ++ wp-content/themes/twentyten/style.css | 23 +++++- 6 files changed, 83 insertions(+), 47 deletions(-) diff --git a/wp-content/themes/twentyten/footer.php b/wp-content/themes/twentyten/footer.php index 5d2018ad1..4bc8c548f 100644 --- a/wp-content/themes/twentyten/footer.php +++ b/wp-content/themes/twentyten/footer.php @@ -17,7 +17,7 @@ <?php /* - * A sidebar in the footer? Yep. You can can customize + * A sidebar in the footer? Yep. You can customize * your footer with four columns of widgets. */ get_sidebar( 'footer' ); diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 847d54035..3db0ab0ed 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -536,7 +536,7 @@ if ( ! function_exists( 'twentyten_posted_in' ) ) : function twentyten_posted_in() { // Retrieves tag list of current post, separated by commas. $tag_list = get_the_tag_list( '', ', ' ); - if ( $tag_list ) { + if ( $tag_list && ! is_wp_error( $tag_list ) ) { $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); @@ -593,3 +593,22 @@ function twentyten_get_gallery_images() { return $images; } + +/** + * Modifies tag cloud widget arguments to display all tags in the same font size + * and use list format for better accessibility. + * + * @since Twenty Ten 2.4 + * + * @param array $args Arguments for tag cloud widget. + * @return array The filtered arguments for tag cloud widget. + */ +function twentyten_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', 'twentyten_widget_tag_cloud_args' ); diff --git a/wp-content/themes/twentyten/languages/twentyten.pot b/wp-content/themes/twentyten/languages/twentyten.pot index d7be48029..98805d91d 100644 --- a/wp-content/themes/twentyten/languages/twentyten.pot +++ b/wp-content/themes/twentyten/languages/twentyten.pot @@ -1,14 +1,14 @@ -# Copyright (C) 2016 the WordPress team +# Copyright (C) 2017 the WordPress team # This file is distributed under the GNU General Public License v2 or later. msgid "" msgstr "" -"Project-Id-Version: Twenty Ten 2.2\n" +"Project-Id-Version: Twenty Ten 2.4\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyten\n" -"POT-Creation-Date: 2016-07-29 15:41:30+00:00\n" +"POT-Creation-Date: 2017-11-01 20:17:06+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -17,9 +17,7 @@ msgid "Not Found" msgstr "" #: 404.php:18 -msgid "" -"Apologies, but the page you requested could not be found. Perhaps searching " -"will help." +msgid "Apologies, but the page you requested could not be found. Perhaps searching will help." msgstr "" #: archive.php:34 @@ -61,8 +59,7 @@ msgid "Category Archives: %s" msgstr "" #: comments.php:18 -msgid "" -"This post is password protected. Enter the password to view any comments." +msgid "This post is password protected. Enter the password to view any comments." msgstr "" #: comments.php:36 @@ -83,8 +80,6 @@ msgstr "" msgid "Comments are closed." msgstr "" -#. #-#-#-#-# twentyten.pot (Twenty Ten 2.2) #-#-#-#-# -#. Author URI of the plugin/theme #: footer.php:40 msgid "https://wordpress.org/" msgstr "" @@ -102,41 +97,49 @@ msgid "Primary Navigation" msgstr "" #. translators: header image description + #: functions.php:165 msgid "Berries" msgstr "" #. translators: header image description + #: functions.php:171 msgid "Cherry Blossoms" msgstr "" #. translators: header image description + #: functions.php:177 msgid "Concave" msgstr "" #. translators: header image description + #: functions.php:183 msgid "Fern" msgstr "" #. translators: header image description + #: functions.php:189 msgid "Forest Floor" msgstr "" #. translators: header image description + #: functions.php:195 msgid "Inkwell" msgstr "" #. translators: header image description + #: functions.php:201 msgid "Path" msgstr "" #. translators: header image description + #: functions.php:207 msgid "Sunset" msgstr "" @@ -154,6 +157,7 @@ msgid "Your comment is awaiting moderation." msgstr "" #. translators: 1: date, 2: time + #: functions.php:386 msgid "%1$s at %2$s" msgstr "" @@ -179,9 +183,7 @@ msgid "Secondary Widget Area" msgstr "" #: functions.php:436 -msgid "" -"An optional secondary widget area, displays below the primary widget area in " -"your sidebar." +msgid "An optional secondary widget area, displays below the primary widget area in your sidebar." msgstr "" #: functions.php:445 @@ -205,9 +207,7 @@ msgid "Fourth Footer Widget Area" msgstr "" #: functions.php:514 -msgid "" -"<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</" -"span> %3$s" +msgid "<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</span> %3$s" msgstr "" #: functions.php:523 loop-attachment.php:36 @@ -215,21 +215,15 @@ msgid "View all posts by %s" msgstr "" #: functions.php:540 -msgid "" -"This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" " -"title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." +msgid "This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." msgstr "" #: functions.php:542 -msgid "" -"This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title=" -"\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." +msgid "This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." msgstr "" #: functions.php:544 -msgid "" -"Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark" -"\">permalink</a>." +msgid "Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." msgstr "" #: header.php:33 @@ -245,6 +239,7 @@ msgid "Return to %s" msgstr "" #. translators: %s - title of parent post + #: loop-attachment.php:23 msgid "<span class=\"meta-nav\">←</span> %s" msgstr "" @@ -297,9 +292,7 @@ msgid "Newer posts <span class=\"meta-nav\">→</span>" msgstr "" #: loop.php:35 -msgid "" -"Apologies, but no results were found for the requested archive. Perhaps " -"searching will help find a related post." +msgid "Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post." msgstr "" #: loop.php:62 loop.php:96 @@ -363,9 +356,7 @@ msgid "Nothing Found" msgstr "" #: search.php:29 -msgid "" -"Sorry, but nothing matched your search criteria. Please try again with some " -"different keywords." +msgid "Sorry, but nothing matched your search criteria. Please try again with some different keywords." msgstr "" #: sidebar.php:28 @@ -379,7 +370,6 @@ msgstr "" #: tag.php:16 msgid "Tag Archives: %s" msgstr "" - #. Theme Name of the plugin/theme msgid "Twenty Ten" msgstr "" @@ -389,21 +379,17 @@ msgid "https://wordpress.org/themes/twentyten/" msgstr "" #. Description of the plugin/theme -msgid "" -"The 2010 theme for WordPress is stylish, customizable, simple, and readable " -"-- make it yours with a custom menu, header image, and background. Twenty " -"Ten supports six widgetized areas (two in the sidebar, four in the footer) " -"and featured images (thumbnails for gallery posts and custom header images " -"for posts and pages). It includes stylesheets for print and the admin Visual " -"Editor, special styles for posts in the \"Asides\" and \"Gallery\" " -"categories, and has an optional one-column page template that removes the " -"sidebar." +msgid "The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the \"Asides\" and \"Gallery\" categories, and has an optional one-column page template that removes the sidebar." msgstr "" #. Author of the plugin/theme msgid "the WordPress team" msgstr "" +#. Author URI of the plugin/theme +msgid "https://wordpress.org/" +msgstr "" + #. Template Name of the plugin/theme msgid "One column, no sidebar" msgstr "" diff --git a/wp-content/themes/twentyten/readme.txt b/wp-content/themes/twentyten/readme.txt index 6d30e4491..804b52c9b 100644 --- a/wp-content/themes/twentyten/readme.txt +++ b/wp-content/themes/twentyten/readme.txt @@ -1,8 +1,8 @@ === Twenty Ten === Contributors: the WordPress team Requires at least: WordPress 3.0 -Tested up to: WordPress 4.9-trunk -Stable tag: 2.3 +Tested up to: WordPress 5.0-trunk +Stable tag: 2.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header @@ -37,6 +37,11 @@ GNU General Public License for more details. == Changelog == += 2.4 = +* Released: November 14, 2017 + +https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.4 + = 2.3 = * Released: June 8, 2017 diff --git a/wp-content/themes/twentyten/rtl.css b/wp-content/themes/twentyten/rtl.css index f6adb8cc3..c458a544e 100644 --- a/wp-content/themes/twentyten/rtl.css +++ b/wp-content/themes/twentyten/rtl.css @@ -270,6 +270,11 @@ div.menu li{ margin-right: 1.3em; } +#main .widget-area .tagcloud ul, +.widget-area .tagcloud ul { + margin-right: 0; +} + /* =Footer -------------------------------------------------------------- */ #site-generator { diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css index 021ab36a2..d73dadd07 100644 --- a/wp-content/themes/twentyten/style.css +++ b/wp-content/themes/twentyten/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyten/ Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. Author: the WordPress team Author URI: https://wordpress.org/ -Version: 2.3 +Version: 2.4 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header @@ -1238,6 +1238,27 @@ h3#reply-title { .widget_media_video video { max-width: 100%; } +.tagcloud ul { + list-style-type: none; + margin-left: 0 !important; +} +.tagcloud ul li { + display: inline-block; +} + +/* Helps galleries in widget areas look presentable in most cases. */ +.widget-area .gallery-columns-2 img, +.widget-area .gallery-columns-3 img, +.widget-area .gallery-columns-4 img, +.widget-area .gallery-columns-5 img, +.widget-area .gallery-columns-6 img, +.widget-area .gallery-columns-7 img, +.widget-area .gallery-columns-8 img, +.widget-area .gallery-columns-9 img { + border: none; + max-width: 90%; + width: auto; +} /* Main sidebars */ #main .widget-area ul { -- GitLab