Changeset 51309 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 07/02/2021 06:46:58 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r51263 r51309 2268 2268 } 2269 2269 2270 $separate_assets = wp_should_load_separate_core_block_assets(); 2271 2272 /* 2273 * Global styles should be printed in the head when loading all styles combined. 2274 * The footer should only be used to print global styles for classic themes with separate core assets enabled. 2275 * 2276 * See https://core.trac.wordpress.org/ticket/53494. 2277 */ 2278 if ( ( ! $separate_assets && doing_action( 'wp_footer' ) ) || ( $separate_assets && doing_action( 'wp_enqueue_scripts' ) ) ) { 2279 return; 2280 } 2281 2270 2282 $can_use_cache = ( 2271 2283 ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) &&
Note: See TracChangeset
for help on using the changeset viewer.