mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@50919 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -429,7 +429,7 @@ CSS;
|
||||
* @covers ::wp_default_styles
|
||||
*/
|
||||
function test_block_styles_for_viewing_without_split_styles() {
|
||||
add_filter( 'separate_core_block_assets', '__return_false' );
|
||||
add_filter( 'should_load_separate_core_block_assets', '__return_false' );
|
||||
wp_default_styles( $GLOBALS['wp_styles'] );
|
||||
|
||||
$this->assertSame(
|
||||
@@ -446,7 +446,7 @@ CSS;
|
||||
* @covers ::wp_default_styles
|
||||
*/
|
||||
function test_block_styles_for_viewing_with_split_styles() {
|
||||
add_filter( 'separate_core_block_assets', '__return_true' );
|
||||
add_filter( 'should_load_separate_core_block_assets', '__return_true' );
|
||||
wp_default_styles( $GLOBALS['wp_styles'] );
|
||||
|
||||
$this->assertSame(
|
||||
|
||||
Reference in New Issue
Block a user