WordPress.org

Make WordPress Core

Changeset 48531


Ignore:
Timestamp:
07/21/2020 01:13:54 PM (2 months ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-patterns.php

    r48494 r48531  
    4545    register_block_pattern_category( 'text', array( 'label' => _x( 'Text', 'Block pattern category' ) ) );
    4646}
    47 
    48 add_action( 'init', '_register_core_block_patterns_and_categories' );
  • trunk/src/wp-includes/default-filters.php

    r48288 r48531  
    303303add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' );
    304304add_action( 'init', 'check_theme_switched', 99 );
     305add_action( 'init', '_register_core_block_patterns_and_categories' );
    305306add_action( 'after_switch_theme', '_wp_menus_changed' );
    306307add_action( 'after_switch_theme', '_wp_sidebars_changed' );
Note: See TracChangeset for help on using the changeset viewer.