Make WordPress Core


Ignore:
Timestamp:
10/17/2023 02:12:07 AM (14 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/functions.php

    r56813 r56951  
    1010
    1111/**
    12  * Register block Styles
     12 * Register block styles
    1313 */
    1414
     
    166166
    167167add_action( 'init', 'twentytwentyfour_block_styles' );
     168
     169/**
     170 * Register pattern categories.
     171 */
     172
     173if ( ! function_exists( 'twentytwentyfour_pattern_categories' ) ) :
     174    /**
     175     * Register pattern categories
     176     *
     177     * @return void
     178     * @since Twenty Twenty-Four 1.0
     179     *
     180     */
     181    function twentytwentyfour_pattern_categories() {
     182
     183        register_block_pattern_category(
     184            'page',
     185            array(
     186                'label'       => _x( 'Pages', 'Block pattern category' ),
     187                'description' => __( 'A collection of full page layouts.' ),
     188            )
     189        );
     190    }
     191endif;
     192
     193add_action( 'init', 'twentytwentyfour_pattern_categories' );
Note: See TracChangeset for help on using the changeset viewer.