From a9c101cf115502e872527f4c44dfdf2d6a8944df Mon Sep 17 00:00:00 2001
From: agata <automa@insicuri.net>
Date: Sat, 24 Apr 2021 21:44:57 +0200
Subject: [PATCH] [auto] theme: twentyten 3.3

---
 wp-content/themes/twentyten/author.php        |  2 +-
 wp-content/themes/twentyten/editor-blocks.css | 77 +++++++++++++++++--
 wp-content/themes/twentyten/functions.php     | 27 ++++---
 wp-content/themes/twentyten/header.php        | 11 +--
 .../themes/twentyten/languages/twentyten.pot  |  2 +-
 .../themes/twentyten/loop-attachment.php      |  6 +-
 wp-content/themes/twentyten/loop.php          | 13 ++--
 wp-content/themes/twentyten/readme.txt        | 21 ++++-
 wp-content/themes/twentyten/style.css         |  2 +-
 9 files changed, 122 insertions(+), 39 deletions(-)

diff --git a/wp-content/themes/twentyten/author.php b/wp-content/themes/twentyten/author.php
index a601f92fe..9d0fe8a9e 100644
--- a/wp-content/themes/twentyten/author.php
+++ b/wp-content/themes/twentyten/author.php
@@ -41,7 +41,7 @@ if ( get_the_author_meta( 'description' ) ) :
 						<div id="author-avatar">
 							<?php
 							/**
-							 * Filter the Twenty Ten author bio avatar size.
+							 * Filters the Twenty Ten author bio avatar size.
 							 *
 							 * @since Twenty Ten 1.0
 							 *
diff --git a/wp-content/themes/twentyten/editor-blocks.css b/wp-content/themes/twentyten/editor-blocks.css
index 03e11f439..fe552e39f 100644
--- a/wp-content/themes/twentyten/editor-blocks.css
+++ b/wp-content/themes/twentyten/editor-blocks.css
@@ -11,6 +11,7 @@ Description: Used to style blocks in the editor.
 3.0 Blocks - Common Blocks
 4.0 Blocks - Formatting
 5.0 Blocks - Widgets
+6.0 Blocks - Colors
 --------------------------------------------------------------*/
 
 /*--------------------------------------------------------------
@@ -95,7 +96,6 @@ Description: Used to style blocks in the editor.
 .edit-post-visual-editor ol,
 .editor-block-list__block ol,
 .block-library-list ol.editor-rich-text__tinymce {
-	margin: 0 0 18px 1.5em;
 	padding: 0;
 }
 
@@ -129,14 +129,21 @@ Description: Used to style blocks in the editor.
 	margin-bottom: 0;
 }
 
-.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
-.rtl .editor-block-list__block ul:not(.wp-block-gallery),
-.rtl .block-library-list ul,
-.rtl .edit-post-visual-editor ol,
-.rtl .editor-block-list__block ol,
-.rtl .block-library-list ol {
+.rtl .editor-styles-wrapper ul ul,
+.rtl .editor-styles-wrapper ol ol,
+.rtl .editor-styles-wrapper ul ol,
+.rtl .editor-styles-wrapper ol ul {
 	margin-left: 0;
-	margin-right: 1.25em;
+	margin-right: 1.5em;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce ul,
+.wp-block-freeform.block-library-rich-text__tinymce ol {
+	padding-left: 1.5em;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
+.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
 	padding: 0;
 }
 
@@ -306,3 +313,57 @@ p.has-drop-cap:not(:focus)::first-letter {
 .edit-post-visual-editor .wp-block-latest-posts.is-grid li {
 	margin-bottom: 1em;
 }
+
+/*--------------------------------------------------------------
+6.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+:root .editor-styles-wrapper .has-blue-color,
+:root .editor-styles-wrapper .has-blue-color:visited {
+	color: #0066cc;
+}
+
+:root .editor-styles-wrapper .has-blue-background-color,
+:root .editor-styles-wrapper .has-blue-background-color:visited {
+	background-color: #0066cc;
+}
+
+:root .editor-styles-wrapper .has-black-color,
+:root .editor-styles-wrapper .has-black-color:visited {
+	color: #000;
+}
+
+:root .editor-styles-wrapper .has-black-background-color,
+:root .editor-styles-wrapper .has-black-background-color:visited {
+	background-color: #000;
+}
+
+:root .editor-styles-wrapper .has-medium-gray-color,
+:root .editor-styles-wrapper .has-medium-gray-color:visited {
+	color: #666;
+}
+
+:root .editor-styles-wrapper .has-medium-gray-background-color,
+:root .editor-styles-wrapper .has-medium-gray-background-color:visited {
+	background-color: #666;
+}
+
+:root .editor-styles-wrapper .has-light-gray-color,
+:root .editor-styles-wrapper .has-light-gray-color:visited {
+	color: #f1f1f1;
+}
+
+:root .editor-styles-wrapper .has-light-gray-background-color,
+:root .editor-styles-wrapper .has-light-gray-background-color:visited {
+	background-color: #f1f1f1;
+}
+
+: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/twentyten/functions.php b/wp-content/themes/twentyten/functions.php
index e60f1ba1a..293276775 100644
--- a/wp-content/themes/twentyten/functions.php
+++ b/wp-content/themes/twentyten/functions.php
@@ -157,7 +157,7 @@ if ( ! function_exists( 'twentyten_setup' ) ) :
 			'default-image'       => '%s/images/headers/path.jpg',
 			// The height and width of our custom header.
 			/**
-			 * Filter the Twenty Ten default header image width.
+			 * Filters the Twenty Ten default header image width.
 			 *
 			 * @since Twenty Ten 1.0
 			 *
@@ -165,7 +165,7 @@ if ( ! function_exists( 'twentyten_setup' ) ) :
 			 */
 			'width'               => apply_filters( 'twentyten_header_image_width', 940 ),
 			/**
-			 * Filter the Twenty Ten defaul header image height.
+			 * Filters the Twenty Ten defaul header image height.
 			 *
 			 * @since Twenty Ten 1.0
 			 *
@@ -341,7 +341,7 @@ endif;
  * @since Twenty Ten 1.0
  *
  * @param string $more The Read More text.
- * @return string An ellipsis.
+ * @return string The filtered Read More text.
  */
 function twentyten_auto_excerpt_more( $more ) {
 	if ( ! is_admin() ) {
@@ -359,7 +359,7 @@ add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
  *
  * @since Twenty Ten 1.0
  *
- * @param string $output The "Coninue Reading" link.
+ * @param string $output The "Continue Reading" link.
  * @return string Excerpt with a pretty "Continue Reading" link.
  */
 function twentyten_custom_excerpt_more( $output ) {
@@ -410,14 +410,15 @@ if ( ! function_exists( 'twentyten_comment' ) ) :
 	 *
 	 * @since Twenty Ten 1.0
 	 *
-	 * @param object $comment The comment object.
-	 * @param array  $args    An array of arguments. @see get_comment_reply_link()
-	 * @param int    $depth   The depth of the comment.
+	 * @param WP_Comment $comment The comment object.
+	 * @param array      $args    An array of arguments. @see get_comment_reply_link()
+	 * @param int        $depth   The depth of the comment.
 	 */
 	function twentyten_comment( $comment, $args, $depth ) {
 		$GLOBALS['comment'] = $comment;
 		switch ( $comment->comment_type ) :
 			case '':
+			case 'comment':
 				?>
 		<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
 		<div id="comment-<?php comment_ID(); ?>">
@@ -434,7 +435,7 @@ if ( ! function_exists( 'twentyten_comment' ) ) :
 				if ( $commenter['comment_author_email'] ) {
 					$moderation_note = __( 'Your comment is awaiting moderation.', 'twentyten' );
 				} else {
-					$moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.', 'twentyten' );
+					$moderation_note = __( 'Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.', 'twentyten' );
 				}
 				?>
 
@@ -629,8 +630,9 @@ 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 && ! is_wp_error( $tag_list ) ) {
+		$tags_list = get_the_tag_list( '', ', ' );
+
+		if ( $tags_list && ! is_wp_error( $tags_list ) ) {
 			/* translators: 1: Category name, 2: Tag name, 3: Post permalink, 4: Post title. */
 			$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' ) ) {
@@ -640,11 +642,12 @@ if ( ! function_exists( 'twentyten_posted_in' ) ) :
 			/* translators: 3: Post permalink, 4: Post title. */
 			$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
 		}
+
 		// Prints the string, replacing the placeholders.
 		printf(
 			$posted_in,
 			get_the_category_list( ', ' ),
-			$tag_list,
+			$tags_list,
 			get_permalink(),
 			the_title_attribute( 'echo=0' )
 		);
@@ -732,7 +735,7 @@ add_action( 'wp_enqueue_scripts', 'twentyten_scripts_styles' );
  */
 function twentyten_block_editor_styles() {
 	// Block styles.
-	wp_enqueue_style( 'twentyten-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20181218' );
+	wp_enqueue_style( 'twentyten-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20201208' );
 }
 add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' );
 
diff --git a/wp-content/themes/twentyten/header.php b/wp-content/themes/twentyten/header.php
index d38f7f55b..14399c5bd 100644
--- a/wp-content/themes/twentyten/header.php
+++ b/wp-content/themes/twentyten/header.php
@@ -38,7 +38,7 @@ if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
 
 ?>
 	</title>
-<link rel="profile" href="http://gmpg.org/xfn/11" />
+<link rel="profile" href="https://gmpg.org/xfn/11" />
 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>?ver=20190507" />
 <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
 <?php
@@ -87,12 +87,13 @@ if ( is_singular() && get_option( 'thread_comments' ) ) {
 				}
 
 				// Check if this is a post or page, if it has a thumbnail, and if it's a big one.
+				$image = false;
 				if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
 					$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) );
-					if ( $image && $image[1] >= $header_image_width ) {
-						// Houston, we have a new header image!
-						echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
-					}
+				}
+				if ( $image && $image[1] >= $header_image_width ) {
+					// Houston, we have a new header image!
+					echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
 				} else {
 					// Compatibility with versions of WordPress prior to 3.4.
 					if ( function_exists( 'get_custom_header' ) ) {
diff --git a/wp-content/themes/twentyten/languages/twentyten.pot b/wp-content/themes/twentyten/languages/twentyten.pot
index 9cf380bd0..1bb44e961 100644
--- a/wp-content/themes/twentyten/languages/twentyten.pot
+++ b/wp-content/themes/twentyten/languages/twentyten.pot
@@ -263,7 +263,7 @@ msgid "Skip to content"
 msgstr ""
 
 #: loop-attachment.php:25
-msgid "Return to %s"
+msgid "Go to %s"
 msgstr ""
 
 #. translators: %s - title of parent post
diff --git a/wp-content/themes/twentyten/loop-attachment.php b/wp-content/themes/twentyten/loop-attachment.php
index fd339d323..1191a39d4 100644
--- a/wp-content/themes/twentyten/loop-attachment.php
+++ b/wp-content/themes/twentyten/loop-attachment.php
@@ -24,7 +24,7 @@ if ( have_posts() ) {
 				<?php
 				if ( ! empty( $post->post_parent ) ) :
 					/* translators: %s: Post title. */
-					$post_tile = sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) );
+					$post_title = sprintf( __( 'Go to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) );
 					?>
 					<p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="gallery">
 						<?php
@@ -123,7 +123,7 @@ if ( have_posts() ) {
 						<p class="attachment"><a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment">
 							<?php
 							/**
-							 * Filter the Twenty Ten default attachment width.
+							 * Filters the Twenty Ten default attachment width.
 							 *
 							 * @since Twenty Ten 1.0
 							 *
@@ -131,7 +131,7 @@ if ( have_posts() ) {
 							 */
 							$attachment_width = apply_filters( 'twentyten_attachment_size', 900 );
 							/**
-							 * Filter the Twenty Ten default attachment height.
+							 * Filters the Twenty Ten default attachment height.
 							 *
 							 * @since Twenty Ten 1.0
 							 *
diff --git a/wp-content/themes/twentyten/loop.php b/wp-content/themes/twentyten/loop.php
index 7798f4206..e7a653fe6 100644
--- a/wp-content/themes/twentyten/loop.php
+++ b/wp-content/themes/twentyten/loop.php
@@ -62,7 +62,7 @@ while ( have_posts() ) :
 
 	<?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?>
 
-	<?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?>
+	<?php if ( ( function_exists( 'get_post_format' ) && 'gallery' === get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?>
 		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
 
@@ -102,7 +102,7 @@ while ( have_posts() ) :
 			<div class="entry-utility">
 			<?php
 			$gallery = get_term_by( 'slug', _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' );
-			if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) :
+			if ( function_exists( 'get_post_format' ) && 'gallery' === get_post_format( $post->ID ) ) :
 				?>
 				<a href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
 				<span class="meta-sep">|</span>
@@ -117,7 +117,7 @@ while ( have_posts() ) :
 
 		<?php /* How to display posts of the Aside format. The asides category is the old way. */ ?>
 
-	<?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?>
+	<?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' === get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?>
 		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 
 		<?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
@@ -176,9 +176,10 @@ while ( have_posts() ) :
 					</span>
 					<span class="meta-sep">|</span>
 				<?php endif; ?>
+
 				<?php
-					$tags_list = get_the_tag_list( '', ', ' );
-				if ( $tags_list ) :
+				$tags_list = get_the_tag_list( '', ', ' );
+				if ( $tags_list && ! is_wp_error( $tags_list ) ) :
 					?>
 				<span class="tag-links">
 					<?php
@@ -188,7 +189,9 @@ while ( have_posts() ) :
 				</span>
 				<span class="meta-sep">|</span>
 				<?php endif; ?>
+
 				<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
+
 				<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
 			</div><!-- .entry-utility -->
 		</div><!-- #post-<?php the_ID(); ?> -->
diff --git a/wp-content/themes/twentyten/readme.txt b/wp-content/themes/twentyten/readme.txt
index 9ff478d25..a1505a456 100644
--- a/wp-content/themes/twentyten/readme.txt
+++ b/wp-content/themes/twentyten/readme.txt
@@ -1,7 +1,7 @@
 === Twenty Ten ===
 Contributors: wordpressdotorg
-Tested up to: 5.0
-Stable tag: 3.0
+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, 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
@@ -21,7 +21,7 @@ For more information about Twenty Ten theme please go to https://codex.wordpress
 
 == Copyright ==
 
-Twenty Ten WordPress Theme, Copyright 2010-2020 WordPress.org & Automattic.com
+Twenty Ten WordPress Theme, Copyright 2010-2021 WordPress.org & Automattic.com
 Twenty Ten is Distributed under the terms of the GNU GPL
 
 This program is free software: you can redistribute it and/or modify
@@ -36,6 +36,21 @@ GNU General Public License for more details.
 
 == Changelog ==
 
+= 3.3 =
+* Released: March 9, 2021
+
+https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.3
+
+= 3.2 =
+* Released: December 8, 2020
+
+https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.2
+
+= 3.1 =
+* Released: August 11, 2020
+
+https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.1
+
 = 3.0 =
 * Released: March 31, 2020
 
diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css
index 2f0781bf3..c47603040 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: 3.0
+Version: 3.3
 Requires at least: 3.0
 Requires PHP: 5.2.4
 License: GNU General Public License v2 or later
-- 
GitLab