Changeset 53312
- Timestamp:
- 04/29/2022 02:08:44 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-patterns.php
r53218 r53312 39 39 register_block_pattern_category( 'buttons', array( 'label' => _x( 'Buttons', 'Block pattern category' ) ) ); 40 40 register_block_pattern_category( 'columns', array( 'label' => _x( 'Columns', 'Block pattern category' ) ) ); 41 register_block_pattern_category( 'featured', array( 'label' => _x( 'Featured', 'Block pattern category' ) ) ); 41 42 register_block_pattern_category( 'gallery', array( 'label' => _x( 'Gallery', 'Block pattern category' ) ) ); 42 43 register_block_pattern_category( 'header', array( 'label' => _x( 'Headers', 'Block pattern category' ) ) ); … … 103 104 if ( ! $should_load_remote || ! $supports_core_patterns ) { 104 105 return; 105 }106 107 if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( 'featured' ) ) {108 register_block_pattern_category( 'featured', array( 'label' => __( 'Featured' ) ) );109 106 } 110 107
Note: See TracChangeset
for help on using the changeset viewer.