Make WordPress Core


Ignore:
Timestamp:
10/17/2023 02:12:07 AM (17 months ago)
Author:
hellofromTonya
Message:

Twenty Twenty-Four: Bugfixes for 6.4 RC1.

Resyncing changes for TT4 into Core.

Changes include:

  • Reformatted all the patterns for readability.
  • Bugfixes in the markup and improvements on the string translation functions.
  • Renaming of some patterns, making them consistent with the content they show and whether they are simple patterns, full-page patterns or patterns meant to replace templates.

Follow-up to [56813], [56764], [56716].

Props richtabor, onemaggie, luminuu, shailu25, dunhakdis, shivashankerbhatta, dajeema, enodekciw, kafleg, viralsampat, glendaviesnz, beafialho, webmandesign, huzaifaalmesbah, gregfuller, benharri.
Fixes #59640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyfour/patterns/hidden-sidebar.php

    r56764 r56951  
    11<?php
    22/**
    3  * Title: sidebar
    4  * Slug: twentytwentyfour/sidebar
    5  * Categories: hidden
     3 * Title: Sidebar
     4 * Slug: twentytwentyfour/hidden-sidebar
    65 * Inserter: no
    76 */
    87?>
    98<!-- wp:group {"style":{"spacing":{"blockGap":"36px","padding":{"right":"0","left":"0"}}},"layout":{"type":"default"}} -->
    10 <div class="wp-block-group" style="padding-right:0;padding-left:0"><!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
    11 <div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:avatar {"size":80,"style":{"border":{"radius":"16px"}}} /-->
     9<div class="wp-block-group" style="padding-right:0;padding-left:0">
     10    <!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
     11    <div class="wp-block-group" style="margin-top:0;margin-bottom:0">
     12        <!-- wp:avatar {"size":80,"style":{"border":{"radius":"16px"}}} /-->
    1213
    13 <!-- wp:group {"style":{"spacing":{"blockGap":"16px"}},"layout":{"type":"flex","orientation":"vertical"}} -->
    14 <div class="wp-block-group"><!-- wp:heading {"style":{"typography":{"fontSize":"1.6rem"}}} -->
    15 <h2 class="wp-block-heading" style="font-size:1.6rem"><?php esc_html_e( 'About the author', 'twentytwentyfour' ); ?></h2>
    16 <!-- /wp:heading -->
     14        <!-- wp:group {"style":{"spacing":{"blockGap":"16px"}},"layout":{"type":"flex","orientation":"vertical"}} -->
     15        <div class="wp-block-group">
     16            <!-- wp:heading {"style":{"typography":{"fontSize":"1.6rem"}}} -->
     17            <h2 class="wp-block-heading" style="font-size:1.6rem"><?php esc_html_e( 'About the author', 'twentytwentyfour' ); ?></h2>
     18            <!-- /wp:heading -->
    1719
    18 <!-- wp:post-author-biography {"fontSize":"small"} /--></div>
    19 <!-- /wp:group --></div>
    20 <!-- /wp:group -->
     20            <!-- wp:post-author-biography {"fontSize":"small"} /-->
     21        </div>
     22        <!-- /wp:group -->
     23    </div>
     24    <!-- /wp:group -->
    2125
    22 <!-- wp:separator {"backgroundColor":"base-3","className":"is-style-wide"} -->
    23 <hr class="wp-block-separator has-text-color has-base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide"/>
    24 <!-- /wp:separator -->
     26    <!-- wp:separator {"backgroundColor":"base-3","className":"is-style-wide"} -->
     27    <hr class="wp-block-separator has-text-color has-base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" />
     28    <!-- /wp:separator -->
    2529
    26 <!-- wp:group {"style":{"spacing":{"blockGap":"16px"}},"layout":{"type":"constrained"}} -->
    27 <div class="wp-block-group"><!-- wp:heading {"style":{"typography":{"fontSize":"1.6rem"}}} -->
    28 <h2 class="wp-block-heading" style="font-size:1.6rem"><?php esc_html_e( 'Popular Categories', 'twentytwentyfour' ); ?></h2>
    29 <!-- /wp:heading -->
     30    <!-- wp:group {"style":{"spacing":{"blockGap":"16px"}},"layout":{"type":"constrained"}} -->
     31    <div class="wp-block-group">
     32        <!-- wp:heading {"style":{"typography":{"fontSize":"1.6rem"}}} -->
     33        <h2 class="wp-block-heading" style="font-size:1.6rem"><?php esc_html_e( 'Popular Categories', 'twentytwentyfour' ); ?></h2>
     34        <!-- /wp:heading -->
    3035
    31 <!-- wp:categories {"showHierarchy":true,"showPostCounts":true,"fontSize":"small"} /--></div>
    32 <!-- /wp:group -->
     36        <!-- wp:categories {"showHierarchy":true,"showPostCounts":true,"fontSize":"small"} /-->
     37    </div>
     38    <!-- /wp:group -->
    3339
    34 <!-- wp:separator {"backgroundColor":"base-3","className":"is-style-wide"} -->
    35 <hr class="wp-block-separator has-text-color has-base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide"/>
    36 <!-- /wp:separator -->
     40    <!-- wp:separator {"backgroundColor":"base-3","className":"is-style-wide"} -->
     41    <hr class="wp-block-separator has-text-color has-base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" />
     42    <!-- /wp:separator -->
    3743
    38 <!-- wp:group {"style":{"spacing":{"blockGap":"26px"}},"layout":{"type":"constrained"}} -->
    39 <div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"16px"}},"layout":{"type":"flex","orientation":"vertical"}} -->
    40 <div class="wp-block-group"><!-- wp:heading {"style":{"typography":{"fontSize":"1.6rem"}}} -->
    41 <h2 class="wp-block-heading" style="font-size:1.6rem"><?php esc_html_e( 'Useful Links', 'twentytwentyfour' ); ?></h2>
    42 <!-- /wp:heading -->
     44    <!-- wp:group {"style":{"spacing":{"blockGap":"26px"}},"layout":{"type":"constrained"}} -->
     45    <div class="wp-block-group">
     46        <!-- wp:group {"style":{"spacing":{"blockGap":"16px"}},"layout":{"type":"flex","orientation":"vertical"}} -->
     47        <div class="wp-block-group">
     48            <!-- wp:heading {"style":{"typography":{"fontSize":"1.6rem"}}} -->
     49            <h2 class="wp-block-heading" style="font-size:1.6rem"><?php esc_html_e( 'Useful Links', 'twentytwentyfour' ); ?></h2>
     50            <!-- /wp:heading -->
    4351
    44 <!-- wp:paragraph {"fontSize":"small"} -->
    45 <p class="has-small-font-size"><?php esc_html_e( 'Links I found useful and wanted to share.', 'twentytwentyfour' ); ?></p>
    46 <!-- /wp:paragraph --></div>
    47 <!-- /wp:group -->
     52            <!-- wp:paragraph {"fontSize":"small"} -->
     53            <p class="has-small-font-size"><?php esc_html_e( 'Links I found useful and wanted to share.', 'twentytwentyfour' ); ?></p>
     54            <!-- /wp:paragraph -->
     55        </div>
     56        <!-- /wp:group -->
    4857
    49 <!-- wp:navigation {"overlayMenu":"never","layout":{"type":"flex","orientation":"vertical"},"style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"spacing":{"blockGap":"var:preset|spacing|10"}},"fontSize":"small"} -->
    50 <!-- wp:navigation-link {"label":"<?php esc_html_e( 'Latest inflation report', 'twentytwentyfour' ); ?>","url":"#","className":"is-style-arrow-link","style":{"typography":{"textDecoration":"underline"}}} /-->
    51 <!-- wp:navigation-link {"label":"<?php esc_html_e( 'Financial apps for families', 'twentytwentyfour' ); ?>","url":"#","className":"is-style-arrow-link","style":{"typography":{"textDecoration":"underline"}}} /-->
    52 <!-- /wp:navigation -->
     58        <!-- wp:navigation {"overlayMenu":"never","layout":{"type":"flex","orientation":"vertical"},"style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"spacing":{"blockGap":"var:preset|spacing|10"}},"fontSize":"small"} -->
     59        <!-- wp:navigation-link {"label":"<?php esc_html_e( 'Latest inflation report', 'twentytwentyfour' ); ?>","url":"#","className":"is-style-arrow-link","style":{"typography":{"textDecoration":"underline"}}} /-->
     60        <!-- wp:navigation-link {"label":"<?php esc_html_e( 'Financial apps for families', 'twentytwentyfour' ); ?>","url":"#","className":"is-style-arrow-link","style":{"typography":{"textDecoration":"underline"}}} /-->
     61        <!-- /wp:navigation -->
     62    </div>
     63    <!-- /wp:group -->
     64
     65    <!-- wp:separator {"backgroundColor":"base-3","className":"is-style-wide"} -->
     66    <hr class="wp-block-separator has-text-color has-base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" />
     67    <!-- /wp:separator -->
     68
     69    <!-- wp:group {"style":{"spacing":{"blockGap":"16px"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
     70    <div class="wp-block-group">
     71        <!-- wp:heading {"style":{"typography":{"fontSize":"1.6rem"}}} -->
     72        <h2 class="wp-block-heading" style="font-size:1.6rem"><?php esc_html_e( 'Search the website', 'twentytwentyfour' ); ?></h2>
     73        <!-- /wp:heading -->
     74
     75        <!-- wp:search {"label":"<?php echo esc_attr_x( 'Search', 'search form label', 'twentytwentyfour' ); ?>","showLabel":false,"placeholder":"<?php echo esc_attr_x( 'Search...', 'search form placeholder', 'twentytwentyfour' ); ?>","width":100,"widthUnit":"%","buttonText":"<?php echo esc_attr_x( 'Search', 'search form label', 'twentytwentyfour' ); ?>"} /-->
     76    </div>
     77    <!-- /wp:group -->
     78
     79    <!-- wp:spacer {"height":"var:preset|spacing|10"} -->
     80    <div style="height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer">
     81    </div>
     82    <!-- /wp:spacer -->
    5383</div>
    5484<!-- /wp:group -->
    55 
    56 <!-- wp:separator {"backgroundColor":"base-3","className":"is-style-wide"} -->
    57 <hr class="wp-block-separator has-text-color has-base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide"/>
    58 <!-- /wp:separator -->
    59 
    60 <!-- wp:group {"style":{"spacing":{"blockGap":"16px"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
    61 <div class="wp-block-group"><!-- wp:heading {"style":{"typography":{"fontSize":"1.6rem"}}} -->
    62 <h2 class="wp-block-heading" style="font-size:1.6rem"><?php esc_html_e( 'Search the website', 'twentytwentyfour' ); ?></h2>
    63 <!-- /wp:heading -->
    64 
    65 <!-- wp:search {"label":"<?php echo esc_attr_x( 'Search', 'search form label', 'twentytwentyfour' ); ?>","showLabel":false,"placeholder":"<?php echo esc_attr_x( 'Search...', 'search form placeholder', 'twentytwentyfour' ); ?>","width":100,"widthUnit":"%","buttonText":"<?php echo esc_attr_x( 'Search', 'search form label', 'twentytwentyfour' ); ?>"} /--></div>
    66 <!-- /wp:group -->
    67 
    68 <!-- wp:spacer {"height":"var:preset|spacing|10"} -->
    69 <div style="height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer"></div>
    70 <!-- /wp:spacer --></div>
    71 <!-- /wp:group -->
Note: See TracChangeset for help on using the changeset viewer.