From b2064fb6b3a1f8b12758e875410db3164b858d31 Mon Sep 17 00:00:00 2001 From: agata <automa@insicuri.net> Date: Sat, 24 Apr 2021 21:45:01 +0200 Subject: [PATCH] [auto] theme: twentytwelve 3.3 --- wp-content/themes/twentytwelve/author.php | 2 +- .../themes/twentytwelve/content-status.php | 2 +- .../themes/twentytwelve/css/editor-blocks.css | 55 ++++ wp-content/themes/twentytwelve/functions.php | 20 +- wp-content/themes/twentytwelve/header.php | 2 +- wp-content/themes/twentytwelve/image.php | 4 +- .../twentytwelve/js/theme-customizer.js | 4 +- wp-content/themes/twentytwelve/readme.txt | 306 +++++++++--------- wp-content/themes/twentytwelve/style.css | 5 +- 9 files changed, 235 insertions(+), 165 deletions(-) diff --git a/wp-content/themes/twentytwelve/author.php b/wp-content/themes/twentytwelve/author.php index 6f449ff51..dc23b686c 100644 --- a/wp-content/themes/twentytwelve/author.php +++ b/wp-content/themes/twentytwelve/author.php @@ -57,7 +57,7 @@ get_header(); ?> <div class="author-avatar"> <?php /** - * Filter the author bio avatar size. + * Filters the author bio avatar size. * * @since Twenty Twelve 1.0 * diff --git a/wp-content/themes/twentytwelve/content-status.php b/wp-content/themes/twentytwelve/content-status.php index ba296cd42..e23265288 100644 --- a/wp-content/themes/twentytwelve/content-status.php +++ b/wp-content/themes/twentytwelve/content-status.php @@ -19,7 +19,7 @@ $post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attrib </header> <?php /** - * Filter the status avatar size. + * Filters the status avatar size. * * @since Twenty Twelve 1.0 * diff --git a/wp-content/themes/twentytwelve/css/editor-blocks.css b/wp-content/themes/twentytwelve/css/editor-blocks.css index 3358a8ac7..a7bb1dd91 100644 --- a/wp-content/themes/twentytwelve/css/editor-blocks.css +++ b/wp-content/themes/twentytwelve/css/editor-blocks.css @@ -12,6 +12,7 @@ Description: Used to style blocks in the editor. 4.0 Blocks - Formatting 5.0 Blocks - Layout Elements 6.0 Blocks - Widgets +7.0 Blocks - Colors --------------------------------------------------------------*/ /*-------------------------------------------------------------- @@ -455,3 +456,57 @@ p.has-drop-cap:not(:focus)::first-letter { padding-left: 0; padding-right: 0; } + +/*-------------------------------------------------------------- +7.0 Blocks - Colors +--------------------------------------------------------------*/ + +:root .editor-styles-wrapper .has-blue-color, +:root .editor-styles-wrapper .has-blue-color:visited { + color: #21759b; +} + +:root .editor-styles-wrapper .has-blue-background-color, +:root .editor-styles-wrapper .has-blue-background-color:visited { + background-color: #21759b; +} + +:root .editor-styles-wrapper .has-dark-gray-color, +:root .editor-styles-wrapper .has-dark-gray-color:visited { + color: #373737; +} + +:root .editor-styles-wrapper .has-dark-gray-background-color, +:root .editor-styles-wrapper .has-dark-gray-background-color:visited { + background-color: #373737; +} + +:root .editor-styles-wrapper .has-medium-gray-color, +:root .editor-styles-wrapper .has-medium-gray-color:visited { + color: #9f9f9f; +} + +:root .editor-styles-wrapper .has-medium-gray-background-color, +:root .editor-styles-wrapper .has-medium-gray-background-color:visited { + background-color: #9f9f9f; +} + +:root .editor-styles-wrapper .has-light-gray-color, +:root .editor-styles-wrapper .has-light-gray-color:visited { + color: #e6e6e6; +} + +:root .editor-styles-wrapper .has-light-gray-background-color, +:root .editor-styles-wrapper .has-light-gray-background-color:visited { + background-color: #e6e6e6; +} + +:root .editor-styles-wrapper .has-white-color, +:root .editor-styles-wrapper .has-white-color:visited { + color: #fff; +} + +:root .editor-styles-wrapper .has-white-background-color, +:root .editor-styles-wrapper .has-white-background-color:visited { + background-color: #fff; +} diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index ec54db0cc..1e3abde27 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -158,11 +158,11 @@ function twentytwelve_get_font_url() { */ $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' ); - if ( 'cyrillic' == $subset ) { + if ( 'cyrillic' === $subset ) { $subsets .= ',cyrillic,cyrillic-ext'; - } elseif ( 'greek' == $subset ) { + } elseif ( 'greek' === $subset ) { $subsets .= ',greek,greek-ext'; - } elseif ( 'vietnamese' == $subset ) { + } elseif ( 'vietnamese' === $subset ) { $subsets .= ',vietnamese'; } @@ -451,7 +451,7 @@ if ( ! function_exists( 'twentytwelve_comment' ) ) : if ( $commenter['comment_author_email'] ) { $moderation_note = __( 'Your comment is awaiting moderation.', 'twentytwelve' ); } else { - $moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.', 'twentytwelve' ); + $moderation_note = __( 'Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.', 'twentytwelve' ); } ?> @@ -501,7 +501,7 @@ if ( ! function_exists( 'twentytwelve_entry_meta' ) ) : $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); /* translators: Used between list items, there is a space after the comma. */ - $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); + $tags_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', @@ -519,7 +519,7 @@ if ( ! function_exists( 'twentytwelve_entry_meta' ) ) : get_the_author() ); - if ( $tag_list ) { + if ( $tags_list && ! is_wp_error( $tags_list ) ) { /* translators: 1: Category name, 2: Tag name, 3: Date, 4: Author display name. */ $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } elseif ( $categories_list ) { @@ -533,7 +533,7 @@ if ( ! function_exists( 'twentytwelve_entry_meta' ) ) : printf( $utility_text, $categories_list, - $tag_list, + $tags_list, $date, $author ); @@ -578,7 +578,7 @@ function twentytwelve_body_class( $classes ) { if ( empty( $background_image ) ) { if ( empty( $background_color ) ) { $classes[] = 'custom-background-empty'; - } elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) { + } elseif ( in_array( $background_color, array( 'fff', 'ffffff' ), true ) ) { $classes[] = 'custom-background-white'; } } @@ -651,6 +651,7 @@ add_action( 'customize_register', 'twentytwelve_customize_register' ); * Render the site title for the selective refresh partial. * * @since Twenty Twelve 2.0 + * * @see twentytwelve_customize_register() * * @return void @@ -663,6 +664,7 @@ function twentytwelve_customize_partial_blogname() { * Render the site tagline for the selective refresh partial. * * @since Twenty Twelve 2.0 + * * @see twentytwelve_customize_register() * * @return void @@ -672,7 +674,7 @@ function twentytwelve_customize_partial_blogdescription() { } /** - * Enqueue Javascript postMessage handlers for the Customizer. + * Enqueue JavaScript postMessage handlers for the Customizer. * * Binds JS handlers to make the Customizer preview reload changes asynchronously. * diff --git a/wp-content/themes/twentytwelve/header.php b/wp-content/themes/twentytwelve/header.php index b51d080bb..fb0fee331 100644 --- a/wp-content/themes/twentytwelve/header.php +++ b/wp-content/themes/twentytwelve/header.php @@ -22,7 +22,7 @@ <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width" /> <title><?php wp_title( '|', true, 'right' ); ?></title> -<link rel="profile" href="http://gmpg.org/xfn/11" /> +<link rel="profile" href="https://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?> <!--[if lt IE 9]> diff --git a/wp-content/themes/twentytwelve/image.php b/wp-content/themes/twentytwelve/image.php index b4ea01702..933b1bcc8 100644 --- a/wp-content/themes/twentytwelve/image.php +++ b/wp-content/themes/twentytwelve/image.php @@ -28,7 +28,7 @@ get_header(); ?> $metadata = wp_get_attachment_metadata(); printf( /* translators: 1: Date, 2: Date, 3: Attachment URL, 4: Image width in pixels, 5: Image height in pixels, 6: Post parent permalink, 7: Post parent title, 8: Post parent title. */ - __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ), + __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Go to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( wp_get_attachment_url() ), @@ -93,7 +93,7 @@ get_header(); ?> <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"> <?php /** - * Filter the image attachment size to use. + * Filters the image attachment size to use. * * @since Twenty Twelve 1.0 * diff --git a/wp-content/themes/twentytwelve/js/theme-customizer.js b/wp-content/themes/twentytwelve/js/theme-customizer.js index 090b4857e..76b370773 100644 --- a/wp-content/themes/twentytwelve/js/theme-customizer.js +++ b/wp-content/themes/twentytwelve/js/theme-customizer.js @@ -41,9 +41,9 @@ value.bind( function( to ) { var body = $( 'body' ); - if ( ( '#ffffff' == to || '#fff' == to ) && 'none' == body.css( 'background-image' ) ) + if ( ( '#ffffff' === to || '#fff' === to ) && 'none' === body.css( 'background-image' ) ) body.addClass( 'custom-background-white' ); - else if ( '' == to && 'none' == body.css( 'background-image' ) ) + else if ( '' === to && 'none' === body.css( 'background-image' ) ) body.addClass( 'custom-background-empty' ); else body.removeClass( 'custom-background-empty custom-background-white' ); diff --git a/wp-content/themes/twentytwelve/readme.txt b/wp-content/themes/twentytwelve/readme.txt index 4f210a617..035817cdc 100644 --- a/wp-content/themes/twentytwelve/readme.txt +++ b/wp-content/themes/twentytwelve/readme.txt @@ -1,148 +1,158 @@ -=== Twenty Twelve === -Contributors: wordpressdotorg -Tested up to: 5.0 -Stable tag: 3.1 -License: GPLv2 or later -License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: blog, one-column, two-columns, 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 - -== Description == -The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background. - -For more information about Twenty Twelve please go to https://codex.wordpress.org/Twenty_Twelve. - -== Installation == - -1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button. -2. Type in Twenty Twelve in the search form and press the 'Enter' key in your keyboard. -3. Click on the 'Activate' button to use your new theme right away. -4. Go to https://codex.wordpress.org/Twenty_Twelve for a guide to customize this theme. -5. Navigate to Appearance > Customize in your admin panel. - -== Copyright == - -Twenty Twelve WordPress Theme, Copyright 2012-2020 WordPress.org & Automattic.com -Twenty Twelve is Distributed under the terms of the GNU GPL - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -Twenty Twelve Theme bundles the following third-party resources: - -HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas -Licenses: MIT/GPL2 -Source: https://github.com/aFarkas/html5shiv - -== Changelog == - -= 3.1 = -* Released: March 31, 2020 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.1 - -= 3.0 = -* Released: May 7, 2019 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.0 - -= 2.9 = -* Released: February 21, 2019 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.9 - -= 2.8 = -* Released: January 9, 2019 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.8 - -= 2.7 = -* Released: December 19, 2018 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.7 - -= 2.6 = -* Released: December 6, 2018 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.6 - -= 2.5 = -* Released: May 17, 2018 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.5 - -= 2.4 = -* Released: November 14, 2017 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.4 - -= 2.3 = -* Released: June 8, 2017 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.3 - -= 2.2 = -* Released: December 6, 2016 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.2 - -= 2.1 = -* Released: August 15, 2016 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.1 - -= 2.0 = -* Released: April 12, 2016 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.0 - -= 1.9 = -* Released: December 8, 2015 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.9 - -= 1.8 = -* Released: August 18, 2015 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.8 - -= 1.7 = -* Released: April 23, 2015 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.7 - -= 1.6 = -* Released: December 18, 2014 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.6 - -= 1.5 = -* Released: September 4, 2014 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.5 - -= 1.4 = -* Released: May 8, 2014 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.4 - -= 1.3 = -* Released: October 24, 2013 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.3 - -= 1.2 = -* Released: August 1, 2013 - -https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.2 - -= 1.1 = -* Released: December 11, 2012 - -Initial release. +=== Twenty Twelve === +Contributors: wordpressdotorg +Tested up to: 5.6 +Stable tag: 3.3 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html +Tags: blog, one-column, two-columns, 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 + +== Description == +The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background. + +For more information about Twenty Twelve please go to https://codex.wordpress.org/Twenty_Twelve. + +== Installation == + +1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button. +2. Type in Twenty Twelve in the search form and press the 'Enter' key in your keyboard. +3. Click on the 'Activate' button to use your new theme right away. +4. Go to https://codex.wordpress.org/Twenty_Twelve for a guide to customize this theme. +5. Navigate to Appearance > Customize in your admin panel. + +== Copyright == + +Twenty Twelve WordPress Theme, Copyright 2012-2020 WordPress.org & Automattic.com +Twenty Twelve is Distributed under the terms of the GNU GPL + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +Twenty Twelve Theme bundles the following third-party resources: + +HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas +Licenses: MIT/GPL2 +Source: https://github.com/aFarkas/html5shiv + +== Changelog == + += 3.3 = +* Released: December 8, 2020 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.3 + += 3.2 = +* Released: August 11, 2020 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.2 + += 3.1 = +* Released: March 31, 2020 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.1 + += 3.0 = +* Released: May 7, 2019 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.0 + += 2.9 = +* Released: February 21, 2019 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.9 + += 2.8 = +* Released: January 9, 2019 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.8 + += 2.7 = +* Released: December 19, 2018 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.7 + += 2.6 = +* Released: December 6, 2018 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.6 + += 2.5 = +* Released: May 17, 2018 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.5 + += 2.4 = +* Released: November 14, 2017 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.4 + += 2.3 = +* Released: June 8, 2017 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.3 + += 2.2 = +* Released: December 6, 2016 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.2 + += 2.1 = +* Released: August 15, 2016 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.1 + += 2.0 = +* Released: April 12, 2016 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.0 + += 1.9 = +* Released: December 8, 2015 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.9 + += 1.8 = +* Released: August 18, 2015 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.8 + += 1.7 = +* Released: April 23, 2015 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.7 + += 1.6 = +* Released: December 18, 2014 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.6 + += 1.5 = +* Released: September 4, 2014 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.5 + += 1.4 = +* Released: May 8, 2014 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.4 + += 1.3 = +* Released: October 24, 2013 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.3 + += 1.2 = +* Released: August 1, 2013 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_1.2 + += 1.1 = +* Released: December 11, 2012 + +Initial release. diff --git a/wp-content/themes/twentytwelve/style.css b/wp-content/themes/twentytwelve/style.css index 41567264e..7489d1aa3 100644 --- a/wp-content/themes/twentytwelve/style.css +++ b/wp-content/themes/twentytwelve/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentytwelve/ Author: the WordPress team Author URI: https://wordpress.org/ Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background. -Version: 3.1 +Version: 3.3 Requires at least: 3.5 Requires PHP: 5.2.4 License: GNU General Public License v2 or later @@ -1417,6 +1417,9 @@ a.comment-edit-link:hover { /* =Widgets -------------------------------------------------------------- */ +.widget select { + max-width: 100%; + } .widget-area .widget ul ul { margin-left: 12px; margin-left: 0.857142857rem; -- GitLab