From e169c4923b9739ccd6b75ee2303dcc42779f50c7 Mon Sep 17 00:00:00 2001 From: Jeff Ong Date: Mon, 20 Dec 2021 16:48:54 +0000 Subject: [PATCH] Twenty Twenty-Two: Sync updates from GitHub for Beta 4. This commit syncs changes for the default theme from its active development repository to core. This is a follow up to [52081], [52107], [52164], [52222], [52283], [52335], and [52375]. It updates the theme's font size presets and fixes an issue with query padding. To view the full set of changes, visit https://github.com/WordPress/twentytwentytwo/compare/623a4d798227a5eb948d0286d3fa779383997649...d6cb56cce4d4789965d05327ec54e48a1be4a171. Props schlessera, williampatton, hellofromtonya, kjellr. See #54318. git-svn-id: https://develop.svn.wordpress.org/trunk@52392 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentytwentytwo/functions.php | 6 ++-- .../twentytwentytwo/inc/block-patterns.php | 12 ++++--- .../footer-query-images-title-citation.php | 2 +- .../patterns/footer-query-title-citation.php | 2 +- .../inc/patterns/general-featured-posts.php | 2 +- .../inc/patterns/general-large-list-names.php | 4 +-- .../inc/patterns/general-list-events.php | 20 +++++------ .../inc/patterns/general-pricing-table.php | 24 ++++++------- .../inc/patterns/general-subscribe.php | 4 +-- .../inc/patterns/general-two-images-text.php | 4 +-- .../inc/patterns/general-video-trailer.php | 4 +-- .../general-wide-image-intro-buttons.php | 4 +-- .../inc/patterns/header-large-dark.php | 4 +-- .../inc/patterns/hidden-heading-and-bird.php | 4 +-- .../inc/patterns/page-about-links-dark.php | 4 +-- .../inc/patterns/page-about-links.php | 6 ++-- .../inc/patterns/page-about-solid-color.php | 4 +-- .../page-layout-image-text-and-video.php | 8 ++--- .../page-sidebar-blog-posts-right.php | 12 +++---- .../inc/patterns/page-sidebar-blog-posts.php | 2 +- .../inc/patterns/page-sidebar-grid-posts.php | 2 +- .../inc/patterns/page-sidebar-poster.php | 8 ++--- .../inc/patterns/query-default.php | 2 +- .../inc/patterns/query-grid.php | 2 +- .../inc/patterns/query-irregular-grid.php | 18 +++++----- .../inc/patterns/query-large-titles.php | 2 +- .../inc/patterns/query-simple-blog.php | 2 +- .../inc/patterns/query-text-grid.php | 2 +- .../themes/twentytwentytwo/style.css | 4 +-- .../twentytwentytwo/templates/archive.html | 4 +-- .../twentytwentytwo/templates/home.html | 2 +- .../twentytwentytwo/templates/index.html | 2 +- .../themes/twentytwentytwo/theme.json | 34 +++++++------------ 33 files changed, 107 insertions(+), 109 deletions(-) diff --git a/src/wp-content/themes/twentytwentytwo/functions.php b/src/wp-content/themes/twentytwentytwo/functions.php index e69420d281..f15e42d2d9 100644 --- a/src/wp-content/themes/twentytwentytwo/functions.php +++ b/src/wp-content/themes/twentytwentytwo/functions.php @@ -43,13 +43,15 @@ if ( ! function_exists( 'twentytwentytwo_styles' ) ) : * @return void */ function twentytwentytwo_styles() { - // Register theme stylesheet. + $theme_version = wp_get_theme()->get( 'Version' ); + + $version_string = is_string( $theme_version ) ? $theme_version : false; wp_register_style( 'twentytwentytwo-style', get_template_directory_uri() . '/style.css', array(), - wp_get_theme()->get( 'Version' ) + $version_string ); // Add styles inline. diff --git a/src/wp-content/themes/twentytwentytwo/inc/block-patterns.php b/src/wp-content/themes/twentytwentytwo/inc/block-patterns.php index fbaa086395..ce5e331798 100644 --- a/src/wp-content/themes/twentytwentytwo/inc/block-patterns.php +++ b/src/wp-content/themes/twentytwentytwo/inc/block-patterns.php @@ -9,14 +9,16 @@ * Registers block patterns and categories. * * @since Twenty Twenty-Two 1.0 + * + * @return void */ function twentytwentytwo_register_block_patterns() { $block_pattern_categories = array( 'featured' => array( 'label' => __( 'Featured', 'twentytwentytwo' ) ), - 'footer' => array( 'label' => __( 'Footers', 'twentytwentytwo' ) ), - 'header' => array( 'label' => __( 'Headers', 'twentytwentytwo' ) ), - 'query' => array( 'label' => __( 'Query', 'twentytwentytwo' ) ), - 'pages' => array( 'label' => __( 'Pages', 'twentytwentytwo' ) ), + 'footer' => array( 'label' => __( 'Footers', 'twentytwentytwo' ) ), + 'header' => array( 'label' => __( 'Headers', 'twentytwentytwo' ) ), + 'query' => array( 'label' => __( 'Query', 'twentytwentytwo' ) ), + 'pages' => array( 'label' => __( 'Pages', 'twentytwentytwo' ) ), ); /** @@ -117,7 +119,7 @@ function twentytwentytwo_register_block_patterns() { * * @since Twenty Twenty-Two 1.0 * - * @param $block_patterns array List of block patterns by name. + * @param array $block_patterns List of block patterns by name. */ $block_patterns = apply_filters( 'twentytwentytwo_block_patterns', $block_patterns ); diff --git a/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-images-title-citation.php b/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-images-title-citation.php index ddbdae6dd1..a79c1d44cd 100644 --- a/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-images-title-citation.php +++ b/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-images-title-citation.php @@ -11,7 +11,7 @@ return array(
- + diff --git a/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php b/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php index 2778621d03..13bb43df5c 100644 --- a/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php +++ b/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php @@ -9,7 +9,7 @@ return array( 'content' => '