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:
Sergey Biryukov
2020-07-21 13:15:05 +00:00
parent ee60c40806
commit 6d207771d3
3 changed files with 2 additions and 3 deletions

View File

@@ -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' );