Changeset 329586
- Timestamp:
- 05/20/2026 09:49:50 PM (5 months ago)
- Location:
- twentytwenty/3.1
- Files:
-
- 22 edited
- 1 copied
-
. (copied) (copied from twentytwenty/3.0 )
-
assets/css/editor-style-block-rtl.css (modified) (3 diffs)
-
assets/css/editor-style-block.css (modified) (3 diffs)
-
classes/class-twentytwenty-customize.php (modified) (1 diff)
-
classes/class-twentytwenty-svg-icons.php (modified) (1 diff)
-
classes/class-twentytwenty-walker-comment.php (modified) (3 diffs)
-
comments.php (modified) (1 diff)
-
functions.php (modified) (5 diffs)
-
inc/custom-css.php (modified) (3 diffs)
-
inc/svg-icons.php (modified) (1 diff)
-
inc/template-tags.php (modified) (8 diffs)
-
index.php (modified) (1 diff)
-
package-lock.json (modified) (2 diffs)
-
package.json (modified) (1 diff)
-
readme.txt (modified) (6 diffs)
-
searchform.php (modified) (1 diff)
-
style-rtl.css (modified) (2 diffs)
-
style.css (modified) (2 diffs)
-
template-parts/content-cover.php (modified) (2 diffs)
-
template-parts/entry-header.php (modified) (2 diffs)
-
template-parts/featured-image.php (modified) (1 diff)
-
template-parts/footer-menus-widgets.php (modified) (1 diff)
-
template-parts/pagination.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
twentytwenty/3.1/assets/css/editor-style-block-rtl.css
r301649 r329586 713 713 714 714 715 /* Block: Code, Verseand Preformatted ------- */715 /* Block: Code, Poetry (Verse) and Preformatted ------- */ 716 716 717 717 .editor-styles-wrapper .wp-block-code { … … 886 886 font-weight: 500; 887 887 margin-top: 12px; 888 text-transform: none;888 text-transform: inherit; 889 889 } 890 890 … … 921 921 922 922 923 /* Block: Verse------------------------------ */923 /* Block: Poetry (Verse) ------------------------------ */ 924 924 925 925 .editor-styles-wrapper .wp-block-verse pre, -
twentytwenty/3.1/assets/css/editor-style-block.css
r301649 r329586 717 717 718 718 719 /* Block: Code, Verseand Preformatted ------- */719 /* Block: Code, Poetry (Verse) and Preformatted ------- */ 720 720 721 721 .editor-styles-wrapper .wp-block-code { … … 890 890 font-weight: 500; 891 891 margin-top: 12px; 892 text-transform: none;892 text-transform: inherit; 893 893 } 894 894 … … 925 925 926 926 927 /* Block: Verse------------------------------ */927 /* Block: Poetry (Verse) ------------------------------ */ 928 928 929 929 .editor-styles-wrapper .wp-block-verse pre, -
twentytwenty/3.1/classes/class-twentytwenty-customize.php
r301649 r329586 460 460 * 461 461 * @param bool $checked Whether or not a box is checked. 462 * @return bool 462 * @return bool Whether the checkbox is checked. 463 463 */ 464 464 public static function sanitize_checkbox( $checked ) { -
twentytwenty/3.1/classes/class-twentytwenty-svg-icons.php
r301649 r329586 328 328 </svg>', 329 329 330 // phpcs:disable WordPress.WP.CapitalPDangit.Misspelled331 330 'wordpress' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"></path></svg>', 332 331 -
twentytwenty/3.1/classes/class-twentytwenty-walker-comment.php
r188108 r329586 38 38 39 39 ?> 40 <<?php echo $tag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>>40 <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>> 41 41 <article id="div-comment-<?php comment_ID(); ?>" class="comment-body"> 42 42 <footer class="comment-meta"> … … 50 50 echo wp_kses_post( $avatar ); 51 51 } else { 52 printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped --Escaped in https://developer.wordpress.org/reference/functions/get_comment_author_url/52 printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url ); 53 53 echo wp_kses_post( $avatar ); 54 54 } … … 132 132 <?php 133 133 if ( $comment_reply_link ) { 134 echo $comment_reply_link; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Link is escaped in https://developer.wordpress.org/reference/functions/get_comment_reply_link/134 echo $comment_reply_link; 135 135 } 136 136 if ( $by_post_author ) { -
twentytwenty/3.1/comments.php
r214268 r329586 86 86 ?> 87 87 88 <nav class="comments-pagination pagination<?php echo $pagination_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output?>" aria-label="<?php esc_attr_e( 'Comments', 'twentytwenty' ); ?>">88 <nav class="comments-pagination pagination<?php echo $pagination_classes; ?>" aria-label="<?php esc_attr_e( 'Comments', 'twentytwenty' ); ?>"> 89 89 <?php echo wp_kses_post( $comment_pagination ); ?> 90 90 </nav> -
twentytwenty/3.1/functions.php
r301649 r329586 305 305 * 306 306 * @param string $html The HTML output from get_custom_logo() (core function). 307 * @return string 307 * @return string Custom logo HTML with "retina" resolution applied if enabled. 308 308 */ 309 309 function twentytwenty_get_custom_logo( $html ) { … … 636 636 * 637 637 * @param string $html The default output HTML for the more tag. 638 * @return string 638 * @return string Read More link element, wrapped in a `div`. 639 639 */ 640 640 function twentytwenty_read_more_tag( $html ) { … … 737 737 * @since Twenty Twenty 1.0 738 738 * 739 * @return array 739 * @return array Customizer color variables for the preview. 740 740 */ 741 741 function twentytwenty_get_customizer_color_vars() { … … 756 756 * @since Twenty Twenty 1.0 757 757 * 758 * @return array 758 * @return array Elements to apply custom colors to. 759 759 */ 760 760 function twentytwenty_get_elements_array() { … … 820 820 * @since Twenty Twenty 1.0 821 821 * 822 * @param array Array of elements.822 * @param array $elements Array of elements. 823 823 */ 824 824 return apply_filters( 'twentytwenty_get_elements_array', $elements ); -
twentytwenty/3.1/inc/custom-css.php
r301649 r329586 21 21 * @param string $suffix The CSS suffix. 22 22 * @param bool $display Print the styles. 23 * @return string Generated CSS. 23 24 */ 24 25 function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $display = true ) { … … 38 39 if ( $display ) { 39 40 40 echo $return; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;)41 echo $return; 41 42 42 43 } … … 55 56 * 56 57 * @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor". 58 * @return string CSS styles built from Customizer options. 57 59 */ 58 60 function twentytwenty_get_customizer_css( $type = 'front-end' ) { -
twentytwenty/3.1/inc/svg-icons.php
r301649 r329586 19 19 */ 20 20 function twentytwenty_the_theme_svg( $svg_name, $group = 'ui', $color = '' ) { 21 echo twentytwenty_get_theme_svg( $svg_name, $group, $color ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_theme_svg().21 echo twentytwenty_get_theme_svg( $svg_name, $group, $color ); 22 22 } 23 23 } -
twentytwenty/3.1/inc/template-tags.php
r301649 r329586 30 30 * @param array $args Arguments for displaying the site logo either as an image or text. 31 31 * @param bool $display Display or return the HTML. 32 * @return string Compiled HTML based on our arguments.32 * @return string|void Compiled HTML based on our arguments. 33 33 */ 34 34 function twentytwenty_site_logo( $args = array(), $display = true ) { … … 99 99 } 100 100 101 echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped101 echo $html; 102 102 } 103 103 … … 108 108 * 109 109 * @param bool $display Display or return the HTML. 110 * @return string The HTML to display.110 * @return string|void The HTML to display. 111 111 */ 112 112 function twentytwenty_site_description( $display = true ) { … … 136 136 } 137 137 138 echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped138 echo $html; 139 139 } 140 140 … … 149 149 * 150 150 * @param object $comment Comment data. 151 * @return bool 151 * @return bool Whether the comment is by the post author. 152 152 */ 153 153 function twentytwenty_is_comment_by_post_author( $comment = null ) { … … 202 202 function twentytwenty_the_post_meta( $post_id = null, $location = 'single-top' ) { 203 203 204 echo twentytwenty_get_post_meta( $post_id, $location ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_post_meta().204 echo twentytwenty_get_post_meta( $post_id, $location ); 205 205 } 206 206 … … 250 250 * @param int $post_id The ID of the post. 251 251 * @param string $location The location where the meta is shown. 252 * @return string|void Post meta HTML. 252 253 */ 253 254 function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) { … … 266 267 * @since Twenty Twenty 1.0 267 268 * 268 * @param array Array of post types.269 * @param array $post_types Array of post types. 269 270 */ 270 271 $disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) ); -
twentytwenty/3.1/index.php
r207576 r329586 32 32 33 33 $archive_title = sprintf( 34 '%1$s %2$s',34 '%1$s “%2$s”', 35 35 '<span class="color-accent">' . __( 'Search:', 'twentytwenty' ) . '</span>', 36 '“' . get_search_query() . '”'36 esc_html( get_search_query( false ) ) 37 37 ); 38 38 -
twentytwenty/3.1/package-lock.json
r301649 r329586 1 1 { 2 2 "name": "twentytwenty", 3 "version": "3. 0.0",3 "version": "3.1.0", 4 4 "lockfileVersion": 2, 5 5 "requires": true, … … 7 7 "": { 8 8 "name": "twentytwenty", 9 "version": "3. 0.0",9 "version": "3.1.0", 10 10 "license": "GPL-2.0-or-later", 11 11 "devDependencies": { -
twentytwenty/3.1/package.json
r301649 r329586 1 1 { 2 2 "name": "twentytwenty", 3 "version": "3. 0.0",3 "version": "3.1.0", 4 4 "description": "Default WP Theme", 5 5 "author": "The WordPress Contributors", -
twentytwenty/3.1/readme.txt
r301649 r329586 2 2 Contributors: the WordPress team 3 3 Requires at least: 4.7 4 Tested up to: 6.94 Tested up to: 7.0 5 5 Requires PHP: 5.2.4 6 Stable tag: 3. 06 Stable tag: 3.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 25 25 == Changelog == 26 26 27 = 3.1 = 28 * Released: May 20, 2026 29 30 https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_3.1 31 27 32 = 3.0 = 28 33 * Released: December 2, 2025 … … 132 137 == Copyright == 133 138 134 Twenty Twenty WordPress Theme, Copyright 2019-202 5WordPress.org and contributors.139 Twenty Twenty WordPress Theme, Copyright 2019-2026 WordPress.org and contributors. 135 140 Twenty Twenty is distributed under the terms of the GNU GPL. 136 141 … … 181 186 182 187 Code from Twenty Nineteen 183 Copyright (c) 2018-202 5WordPress.org188 Copyright (c) 2018-2026 WordPress.org 184 189 License: GPLv2 185 190 Source: https://wordpress.org/themes/twentynineteen/ … … 191 196 192 197 Code from Twenty Seventeen 193 Copyright (c) 2016-202 5WordPress.org198 Copyright (c) 2016-2026 WordPress.org 194 199 License: GPLv2 195 200 Source: https://wordpress.org/themes/twentyseventeen/ … … 198 203 199 204 Underscores 200 https://underscores.me/, (C) 2012-202 5Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)205 https://underscores.me/, (C) 2012-2026 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html) -
twentytwenty/3.1/searchform.php
r188108 r329586 24 24 } 25 25 ?> 26 <form role="search" <?php echo $twentytwenty_aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above.?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">26 <form role="search" <?php echo $twentytwenty_aria_label; ?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> 27 27 <label for="<?php echo esc_attr( $twentytwenty_unique_id ); ?>"> 28 28 <span class="screen-reader-text"> -
twentytwenty/3.1/style-rtl.css
r301649 r329586 2 2 Theme Name: Twenty Twenty 3 3 Text Domain: twentytwenty 4 Version: 3. 05 Tested up to: 6.94 Version: 3.1 5 Tested up to: 7.0 6 6 Requires at least: 4.7 7 7 Requires PHP: 5.2.4 … … 186 186 position: absolute !important; 187 187 width: 1px; 188 /* Many screen reader and browser combinations announce broken words as they would appear visually. */ 188 189 word-wrap: normal !important; 189 word-break: normal ;190 word-break: normal !important; 190 191 } 191 192 -
twentytwenty/3.1/style.css
r301649 r329586 2 2 Theme Name: Twenty Twenty 3 3 Text Domain: twentytwenty 4 Version: 3. 05 Tested up to: 6.94 Version: 3.1 5 Tested up to: 7.0 6 6 Requires at least: 4.7 7 7 Requires PHP: 5.2.4 … … 186 186 position: absolute !important; 187 187 width: 1px; 188 /* Many screen reader and browser combinations announce broken words as they would appear visually. */ 188 189 word-wrap: normal !important; 189 word-break: normal ;190 word-break: normal !important; 190 191 } 191 192 -
twentytwenty/3.1/template-parts/content-cover.php
r188108 r329586 45 45 ?> 46 46 47 <div class="cover-header <?php echo $cover_header_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>"<?php echo $cover_header_style; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;)?>>47 <div class="cover-header <?php echo $cover_header_classes; ?>"<?php echo $cover_header_style; ?>> 48 48 <div class="cover-header-inner-wrapper screen-height"> 49 49 <div class="cover-header-inner"> 50 <div class="cover-color-overlay color-accent<?php echo esc_attr( $color_overlay_classes ); ?>"<?php echo $color_overlay_style; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;)?>></div>50 <div class="cover-color-overlay color-accent<?php echo esc_attr( $color_overlay_classes ); ?>"<?php echo $color_overlay_style; ?>></div> 51 51 52 52 <header class="entry-header has-text-align-center"> … … 60 60 * @since Twenty Twenty 1.0 61 61 * 62 * @param bool Whether to show the categories in article header. Default true.62 * @param bool $show_categories Whether to show the categories in article header. Default true. 63 63 */ 64 64 $show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true ); -
twentytwenty/3.1/template-parts/entry-header.php
r188108 r329586 26 26 * @since Twenty Twenty 1.0 27 27 * 28 * @param bool Whether to show the categories in header. Default true.28 * @param bool $show_categories Whether to show the categories in header. Default true. 29 29 */ 30 30 $show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true ); … … 65 65 ?> 66 66 67 <div class="intro-text section-inner max-percentage<?php echo $intro_text_width; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output?>">67 <div class="intro-text section-inner max-percentage<?php echo $intro_text_width; ?>"> 68 68 <?php the_excerpt(); ?> 69 69 </div> -
twentytwenty/3.1/template-parts/featured-image.php
r168449 r329586 20 20 <figure class="featured-media"> 21 21 22 <div class="featured-media-inner section-inner<?php echo $featured_media_inner_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output?>">22 <div class="featured-media-inner section-inner<?php echo $featured_media_inner_classes; ?>"> 23 23 24 24 <?php -
twentytwenty/3.1/template-parts/footer-menus-widgets.php
r178731 r329586 32 32 if ( $has_footer_menu || $has_social_menu ) { 33 33 ?> 34 <div class="footer-top<?php echo $footer_top_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output?>">34 <div class="footer-top<?php echo $footer_top_classes; ?>"> 35 35 <?php if ( $has_footer_menu ) { ?> 36 36 -
twentytwenty/3.1/template-parts/pagination.php
r301649 r329586 59 59 <hr class="styled-separator pagination-separator is-style-wide" aria-hidden="true" /> 60 60 61 <?php echo $posts_pagination; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- already escaped during generation.?>61 <?php echo $posts_pagination; ?> 62 62 63 63 </div><!-- .pagination-wrapper -->
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)