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:
Greg Ziółkowski
2021-05-17 14:26:53 +00:00
parent a8d2e6ba40
commit d9f169a02a
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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(