Make WordPress Themes

Changeset 329586


Ignore:
Timestamp:
05/20/2026 09:49:50 PM (5 months ago)
Author:
themedropbox
Message:

New version of Twenty Twenty - 3.1

Location:
twentytwenty/3.1
Files:
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • twentytwenty/3.1/assets/css/editor-style-block-rtl.css

    r301649 r329586  
    713713
    714714
    715 /* Block: Code, Verse and Preformatted ------- */
     715/* Block: Code, Poetry (Verse) and Preformatted ------- */
    716716
    717717.editor-styles-wrapper .wp-block-code {
    … …  
    886886        font-weight: 500;
    887887        margin-top: 12px;
    888         text-transform: none;
     888        text-transform: inherit;
    889889}
    890890
    … …  
    921921
    922922
    923 /* Block: Verse ------------------------------ */
     923/* Block: Poetry (Verse) ------------------------------ */
    924924
    925925.editor-styles-wrapper .wp-block-verse pre,
  • twentytwenty/3.1/assets/css/editor-style-block.css

    r301649 r329586  
    717717
    718718
    719 /* Block: Code, Verse and Preformatted ------- */
     719/* Block: Code, Poetry (Verse) and Preformatted ------- */
    720720
    721721.editor-styles-wrapper .wp-block-code {
    … …  
    890890        font-weight: 500;
    891891        margin-top: 12px;
    892         text-transform: none;
     892        text-transform: inherit;
    893893}
    894894
    … …  
    925925
    926926
    927 /* Block: Verse ------------------------------ */
     927/* Block: Poetry (Verse) ------------------------------ */
    928928
    929929.editor-styles-wrapper .wp-block-verse pre,
  • twentytwenty/3.1/classes/class-twentytwenty-customize.php

    r301649 r329586  
    460460                 *
    461461                 * @param bool $checked Whether or not a box is checked.
    462                  * @return bool
     462                 * @return bool Whether the checkbox is checked.
    463463                 */
    464464                public static function sanitize_checkbox( $checked ) {
  • twentytwenty/3.1/classes/class-twentytwenty-svg-icons.php

    r301649 r329586  
    328328</svg>',
    329329
    330                         // phpcs:disable WordPress.WP.CapitalPDangit.Misspelled
    331330                        '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>',
    332331
  • twentytwenty/3.1/classes/class-twentytwenty-walker-comment.php

    r188108 r329586  
    3838
    3939                        ?>
    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 ); ?>>
    4141                                <article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
    4242                                        <footer class="comment-meta">
    … …  
    5050                                                                        echo wp_kses_post( $avatar );
    5151                                                                } 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 );
    5353                                                                        echo wp_kses_post( $avatar );
    5454                                                                }
    … …  
    132132                                                        <?php
    133133                                                        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;
    135135                                                        }
    136136                                                        if ( $by_post_author ) {
  • twentytwenty/3.1/comments.php

    r214268 r329586  
    8686                                ?>
    8787
    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' ); ?>">
    8989                                        <?php echo wp_kses_post( $comment_pagination ); ?>
    9090                                </nav>
  • twentytwenty/3.1/functions.php

    r301649 r329586  
    305305 *
    306306 * @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.
    308308 */
    309309function twentytwenty_get_custom_logo( $html ) {
    … …  
    636636 *
    637637 * @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`.
    639639 */
    640640function twentytwenty_read_more_tag( $html ) {
    … …  
    737737 * @since Twenty Twenty 1.0
    738738 *
    739  * @return array
     739 * @return array Customizer color variables for the preview.
    740740 */
    741741function twentytwenty_get_customizer_color_vars() {
    … …  
    756756 * @since Twenty Twenty 1.0
    757757 *
    758  * @return array
     758 * @return array Elements to apply custom colors to.
    759759 */
    760760function twentytwenty_get_elements_array() {
    … …  
    820820         * @since Twenty Twenty 1.0
    821821         *
    822          * @param array Array of elements.
     822         * @param array $elements Array of elements.
    823823         */
    824824        return apply_filters( 'twentytwenty_get_elements_array', $elements );
  • twentytwenty/3.1/inc/custom-css.php

    r301649 r329586  
    2121         * @param string $suffix   The CSS suffix.
    2222         * @param bool   $display  Print the styles.
     23         * @return string Generated CSS.
    2324         */
    2425        function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $display = true ) {
    … …  
    3839                if ( $display ) {
    3940
    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;
    4142
    4243                }
    … …  
    5556         *
    5657         * @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.
    5759         */
    5860        function twentytwenty_get_customizer_css( $type = 'front-end' ) {
  • twentytwenty/3.1/inc/svg-icons.php

    r301649 r329586  
    1919         */
    2020        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 );
    2222        }
    2323}
  • twentytwenty/3.1/inc/template-tags.php

    r301649 r329586  
    3030 * @param array $args    Arguments for displaying the site logo either as an image or text.
    3131 * @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.
    3333 */
    3434function twentytwenty_site_logo( $args = array(), $display = true ) {
    … …  
    9999        }
    100100
    101         echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     101        echo $html;
    102102}
    103103
    … …  
    108108 *
    109109 * @param bool $display Display or return the HTML.
    110  * @return string The HTML to display.
     110 * @return string|void The HTML to display.
    111111 */
    112112function twentytwenty_site_description( $display = true ) {
    … …  
    136136        }
    137137
    138         echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     138        echo $html;
    139139}
    140140
    … …  
    149149 *
    150150 * @param object $comment Comment data.
    151  * @return bool
     151 * @return bool Whether the comment is by the post author.
    152152 */
    153153function twentytwenty_is_comment_by_post_author( $comment = null ) {
    … …  
    202202function twentytwenty_the_post_meta( $post_id = null, $location = 'single-top' ) {
    203203
    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 );
    205205}
    206206
    … …  
    250250 * @param int    $post_id  The ID of the post.
    251251 * @param string $location The location where the meta is shown.
     252 * @return string|void Post meta HTML.
    252253 */
    253254function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) {
    … …  
    266267         * @since Twenty Twenty 1.0
    267268         *
    268          * @param array Array of post types.
     269         * @param array $post_types Array of post types.
    269270         */
    270271        $disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) );
  • twentytwenty/3.1/index.php

    r207576 r329586  
    3232
    3333                $archive_title = sprintf(
    34                         '%1$s %2$s',
     34                        '%1$s &ldquo;%2$s&rdquo;',
    3535                        '<span class="color-accent">' . __( 'Search:', 'twentytwenty' ) . '</span>',
    36                         '&ldquo;' . get_search_query() . '&rdquo;'
     36                        esc_html( get_search_query( false ) )
    3737                );
    3838
  • twentytwenty/3.1/package-lock.json

    r301649 r329586  
    11{
    22        "name": "twentytwenty",
    3         "version": "3.0.0",
     3        "version": "3.1.0",
    44        "lockfileVersion": 2,
    55        "requires": true,
    … …  
    77                "": {
    88                        "name": "twentytwenty",
    9                         "version": "3.0.0",
     9                        "version": "3.1.0",
    1010                        "license": "GPL-2.0-or-later",
    1111                        "devDependencies": {
  • twentytwenty/3.1/package.json

    r301649 r329586  
    11{
    22        "name": "twentytwenty",
    3         "version": "3.0.0",
     3        "version": "3.1.0",
    44        "description": "Default WP Theme",
    55        "author": "The WordPress Contributors",
  • twentytwenty/3.1/readme.txt

    r301649 r329586  
    22Contributors: the WordPress team
    33Requires at least: 4.7
    4 Tested up to: 6.9
     4Tested up to: 7.0
    55Requires PHP: 5.2.4
    6 Stable tag: 3.0
     6Stable tag: 3.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    2525== Changelog ==
    2626
     27= 3.1 =
     28* Released: May 20, 2026
     29
     30https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_3.1
     31
    2732= 3.0 =
    2833* Released: December 2, 2025
    … …  
    132137== Copyright ==
    133138
    134 Twenty Twenty WordPress Theme, Copyright 2019-2025 WordPress.org and contributors.
     139Twenty Twenty WordPress Theme, Copyright 2019-2026 WordPress.org and contributors.
    135140Twenty Twenty is distributed under the terms of the GNU GPL.
    136141
    … …  
    181186
    182187Code from Twenty Nineteen
    183 Copyright (c) 2018-2025 WordPress.org
     188Copyright (c) 2018-2026 WordPress.org
    184189License: GPLv2
    185190Source: https://wordpress.org/themes/twentynineteen/
    … …  
    191196
    192197Code from Twenty Seventeen
    193 Copyright (c) 2016-2025 WordPress.org
     198Copyright (c) 2016-2026 WordPress.org
    194199License: GPLv2
    195200Source: https://wordpress.org/themes/twentyseventeen/
    … …  
    198203
    199204Underscores
    200 https://underscores.me/, (C) 2012-2025 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)
     205https://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  
    2424}
    2525?>
    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( '/' ) ); ?>">
    2727        <label for="<?php echo esc_attr( $twentytwenty_unique_id ); ?>">
    2828                <span class="screen-reader-text">
  • twentytwenty/3.1/style-rtl.css

    r301649 r329586  
    22Theme Name: Twenty Twenty
    33Text Domain: twentytwenty
    4 Version: 3.0
    5 Tested up to: 6.9
     4Version: 3.1
     5Tested up to: 7.0
    66Requires at least: 4.7
    77Requires PHP: 5.2.4
    … …  
    186186        position: absolute !important;
    187187        width: 1px;
     188        /* Many screen reader and browser combinations announce broken words as they would appear visually. */
    188189        word-wrap: normal !important;
    189         word-break: normal;
     190        word-break: normal !important;
    190191}
    191192
  • twentytwenty/3.1/style.css

    r301649 r329586  
    22Theme Name: Twenty Twenty
    33Text Domain: twentytwenty
    4 Version: 3.0
    5 Tested up to: 6.9
     4Version: 3.1
     5Tested up to: 7.0
    66Requires at least: 4.7
    77Requires PHP: 5.2.4
    … …  
    186186        position: absolute !important;
    187187        width: 1px;
     188        /* Many screen reader and browser combinations announce broken words as they would appear visually. */
    188189        word-wrap: normal !important;
    189         word-break: normal;
     190        word-break: normal !important;
    190191}
    191192
  • twentytwenty/3.1/template-parts/content-cover.php

    r188108 r329586  
    4545        ?>
    4646
    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; ?>>
    4848                <div class="cover-header-inner-wrapper screen-height">
    4949                        <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>
    5151
    5252                                        <header class="entry-header has-text-align-center">
    … …  
    6060                                                         * @since Twenty Twenty 1.0
    6161                                                         *
    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.
    6363                                                         */
    6464                                                        $show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true );
  • twentytwenty/3.1/template-parts/entry-header.php

    r188108 r329586  
    2626                 * @since Twenty Twenty 1.0
    2727                 *
    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.
    2929                 */
    3030                $show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true );
    … …  
    6565                        ?>
    6666
    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; ?>">
    6868                                <?php the_excerpt(); ?>
    6969                        </div>
  • twentytwenty/3.1/template-parts/featured-image.php

    r168449 r329586  
    2020        <figure class="featured-media">
    2121
    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; ?>">
    2323
    2424                        <?php
  • twentytwenty/3.1/template-parts/footer-menus-widgets.php

    r178731 r329586  
    3232                        if ( $has_footer_menu || $has_social_menu ) {
    3333                                ?>
    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; ?>">
    3535                                        <?php if ( $has_footer_menu ) { ?>
    3636
  • twentytwenty/3.1/template-parts/pagination.php

    r301649 r329586  
    5959                <hr class="styled-separator pagination-separator is-style-wide" aria-hidden="true" />
    6060
    61                 <?php echo $posts_pagination; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- already escaped during generation. ?>
     61                <?php echo $posts_pagination; ?>
    6262
    6363        </div><!-- .pagination-wrapper -->
Note: See TracChangeset for help on using the changeset viewer.