Block Editor: Move the add_action() call for _register_core_block_patterns_and_categories() to wp-includes/default-filters.php.
Follow-up to [48492]. Props desrosj. Fixes #50669. Built from https://develop.svn.wordpress.org/trunk@48531 git-svn-id: http://core.svn.wordpress.org/trunk@48293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -44,5 +44,3 @@ function _register_core_block_patterns_and_categories() {
|
||||
register_block_pattern_category( 'header', array( 'label' => _x( 'Headers', 'Block pattern category' ) ) );
|
||||
register_block_pattern_category( 'text', array( 'label' => _x( 'Text', 'Block pattern category' ) ) );
|
||||
}
|
||||
|
||||
add_action( 'init', '_register_core_block_patterns_and_categories' );
|
||||
|
||||
Reference in New Issue
Block a user