mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
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:
parent
ee60c40806
commit
6d207771d3
@ -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( 'header', array( 'label' => _x( 'Headers', 'Block pattern category' ) ) );
|
||||||
register_block_pattern_category( 'text', array( 'label' => _x( 'Text', 'Block pattern category' ) ) );
|
register_block_pattern_category( 'text', array( 'label' => _x( 'Text', 'Block pattern category' ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
add_action( 'init', '_register_core_block_patterns_and_categories' );
|
|
||||||
|
@ -302,6 +302,7 @@ add_action( 'wp_footer', 'wp_print_footer_scripts', 20 );
|
|||||||
add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 );
|
add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 );
|
||||||
add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' );
|
add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' );
|
||||||
add_action( 'init', 'check_theme_switched', 99 );
|
add_action( 'init', 'check_theme_switched', 99 );
|
||||||
|
add_action( 'init', '_register_core_block_patterns_and_categories' );
|
||||||
add_action( 'after_switch_theme', '_wp_menus_changed' );
|
add_action( 'after_switch_theme', '_wp_menus_changed' );
|
||||||
add_action( 'after_switch_theme', '_wp_sidebars_changed' );
|
add_action( 'after_switch_theme', '_wp_sidebars_changed' );
|
||||||
add_action( 'wp_print_styles', 'print_emoji_styles' );
|
add_action( 'wp_print_styles', 'print_emoji_styles' );
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-beta2-48530';
|
$wp_version = '5.5-beta2-48531';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user