WordPress.org

Make WordPress Core

Changeset 48533


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

Block Editor: Move the add_action() call for _register_core_block_patterns_and_categories() above check_theme_switched().

Follow-up to [48492], [48531].

See #50669.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r48531 r48533  
    302302add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 );
    303303add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' );
     304add_action( 'init', '_register_core_block_patterns_and_categories' );
    304305add_action( 'init', 'check_theme_switched', 99 );
    305 add_action( 'init', '_register_core_block_patterns_and_categories' );
    306306add_action( 'after_switch_theme', '_wp_menus_changed' );
    307307add_action( 'after_switch_theme', '_wp_sidebars_changed' );
Note: See TracChangeset for help on using the changeset viewer.