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.

git-svn-id: https://develop.svn.wordpress.org/trunk@48531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-07-21 13:13:54 +00:00
parent 99f5b6019a
commit fd9f7232e5
2 changed files with 1 additions and 2 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' );