Make WordPress Core


Ignore:
Timestamp:
06/12/2024 07:15:06 AM (2 years ago)
Author:
oandregal
Message:

Editor: register block style variations defined by the theme using the init action.

Props oandregal, aaronrobertshaw, annezazu.

Follow-up to [58264].
See #61312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-supports/block-style-variations.php

    r58264 r58394  
    6666        switch_theme( 'block-theme' );
    6767
     68        /*
     69         * Trigger block style registration that occurs on `init` action.
     70         * do_action( 'init' ) could be used here however this direct call
     71         * means only the updates being tested are performed.
     72         */
     73        wp_register_block_style_variations_from_theme();
     74
    6875        $variation_styles_data = array(
    6976            'color'    => array(
Note: See TracChangeset for help on using the changeset viewer.