Make WordPress Core


Ignore:
Timestamp:
07/21/2020 01:13:54 PM (4 years 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.