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' => '