Make WordPress Core


Ignore:
Timestamp:
07/02/2020 05:20:28 PM (5 years ago)
Author:
gziolo
Message:

Editor: Move core blocks registration to init hook

After working on support for register_block_type_args filter in #49615, it became clear that we need to use init action for core blocks to make it possible to use this filter.

Fixes #50263.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/functions.php

    r47882 r48279  
    315315    remove_action( 'init', 'register_block_core_social_link' );
    316316    remove_action( 'init', 'register_block_core_tag_cloud' );
     317    remove_action( 'init', 'register_core_block_types_from_metadata' );
    317318}
    318319tests_add_filter( 'init', '_unhook_block_registration', 1000 );
Note: See TracChangeset for help on using the changeset viewer.