Skip to content

Commit 29718f6

Browse files
committed
Run test case set_up before default styles are registered
1 parent e836c20 commit 29718f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/phpunit/tests/template.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,6 +1963,10 @@ public function test_wp_hoist_late_printed_styles( ?Closure $set_up, string $con
19631963
// `_print_emoji_detection_script()` assumes `wp-includes/js/wp-emoji-loader.js` is present:
19641964
self::touch( ABSPATH . WPINC . '/js/wp-emoji-loader.js' );
19651965

1966+
if ( $set_up ) {
1967+
$set_up();
1968+
}
1969+
19661970
switch_theme( 'default' );
19671971
global $wp_styles;
19681972
$wp_styles = null;
@@ -2001,10 +2005,6 @@ static function () {
20012005
}
20022006
);
20032007

2004-
if ( $set_up ) {
2005-
$set_up();
2006-
}
2007-
20082008
wp_load_classic_theme_block_styles_on_demand();
20092009

20102010
// Ensure that separate core block assets get registered.

0 commit comments

Comments
 (0)