Make WordPress Core


Ignore:
Timestamp:
07/21/2020 01:13:54 PM (6 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/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' );
Note: See TracChangeset for help on using the changeset viewer.