forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
1,181 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
/** | ||
* Overrides Core's wp-includes/block-patterns.php to add category descriptions for WP 6.2. | ||
* | ||
* @package gutenberg | ||
*/ | ||
|
||
/** | ||
* Registers the block pattern categories REST API routes. | ||
*/ | ||
function gutenberg_register_core_block_patterns_and_categories() { | ||
register_block_pattern_category( | ||
'buttons', | ||
array( | ||
'label' => _x( 'Buttons', 'Block pattern category', 'gutenberg' ), | ||
) | ||
); | ||
register_block_pattern_category( | ||
'columns', | ||
array( | ||
'label' => _x( 'Columns', 'Block pattern category', 'gutenberg' ), | ||
) | ||
); | ||
register_block_pattern_category( | ||
'footer', | ||
array( | ||
'label' => _x( 'Footers', 'Block pattern category', 'gutenberg' ), | ||
) | ||
); | ||
register_block_pattern_category( | ||
'gallery', | ||
array( | ||
'label' => _x( 'Gallery', 'Block pattern category', 'gutenberg' ), | ||
) | ||
); | ||
register_block_pattern_category( | ||
'header', | ||
array( | ||
'label' => _x( 'Headers', 'Block pattern category', 'gutenberg' ), | ||
) | ||
); | ||
register_block_pattern_category( | ||
'text', | ||
array( | ||
'label' => _x( 'Text', 'Block pattern category', 'gutenberg' ), | ||
) | ||
); | ||
register_block_pattern_category( | ||
'query', | ||
array( | ||
'label' => _x( 'Posts', 'Block pattern category', 'gutenberg' ), | ||
'description' => __( 'Display post summaries in lists, grids, and other layouts.', 'gutenberg' ), | ||
) | ||
); | ||
register_block_pattern_category( | ||
'featured', | ||
array( | ||
'label' => _x( 'Featured', 'Block pattern category', 'gutenberg' ), | ||
) | ||
); | ||
} | ||
add_action( 'init', 'gutenberg_register_core_block_patterns_and_categories' ); |
Oops, something went wrong.