Make WordPress Core


Ignore:
Timestamp:
05/17/2021 02:26:53 PM (4 years ago)
Author:
gziolo
Message:

Editor: Rename should_load_separate_core_block_assets for consistency

Changes introduced:

  • The wp_should_load_separate_core_block_assets function.
  • The should_load_separate_core_block_assets filter.

Props hellofromTonya, SergeyBiryukov.
Fixes #50328.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/dependencies/styles.php

    r50838 r50919  
    430430     */
    431431    function test_block_styles_for_viewing_without_split_styles() {
    432         add_filter( 'separate_core_block_assets', '__return_false' );
     432        add_filter( 'should_load_separate_core_block_assets', '__return_false' );
    433433        wp_default_styles( $GLOBALS['wp_styles'] );
    434434
     
    447447     */
    448448    function test_block_styles_for_viewing_with_split_styles() {
    449         add_filter( 'separate_core_block_assets', '__return_true' );
     449        add_filter( 'should_load_separate_core_block_assets', '__return_true' );
    450450        wp_default_styles( $GLOBALS['wp_styles'] );
    451451
Note: See TracChangeset for help on using the changeset viewer.