Changeset 52738
- Timestamp:
- 02/16/2022 10:34:20 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r52695 r52738 2308 2308 */ 2309 2309 function wp_enqueue_global_styles() { 2310 $separate_assets = wp_should_load_separate_core_block_assets(); 2310 $separate_assets = wp_should_load_separate_core_block_assets(); 2311 $is_block_theme = wp_is_block_theme(); 2312 $is_classic_theme = ! $is_block_theme; 2311 2313 2312 2314 /* … … 2316 2318 * See https://core.trac.wordpress.org/ticket/53494. 2317 2319 */ 2318 if ( ( ! $separate_assets && doing_action( 'wp_footer' ) ) || ( $separate_assets && doing_action( 'wp_enqueue_scripts' ) ) ) { 2320 if ( 2321 ( $is_block_theme && doing_action( 'wp_footer' ) ) || 2322 ( $is_classic_theme && doing_action( 'wp_footer' ) && ! $separate_assets ) || 2323 ( $is_classic_theme && doing_action( 'wp_enqueue_scripts' ) && $separate_assets ) 2324 ) { 2319 2325 return; 2320 2326 }
Note: See TracChangeset
for help on using the changeset viewer.