Changeset 55192 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 02/02/2023 06:50:54 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r55179 r55192 2456 2456 2457 2457 /** 2458 * Enqueues the global styles custom css defined via theme.json. 2459 * 2460 * @since 6.2.0 2461 */ 2462 function wp_enqueue_global_styles_custom_css() { 2463 if ( ! wp_is_block_theme() ) { 2464 return; 2465 } 2466 2467 // Don't enqueue Customizer's custom CSS separately. 2468 remove_action( 'wp_head', 'wp_custom_css_cb', 101 ); 2469 2470 $custom_css = wp_get_custom_css(); 2471 $custom_css .= wp_get_global_styles_custom_css(); 2472 2473 if ( ! empty( $custom_css ) ) { 2474 wp_add_inline_style( 'global-styles', $custom_css ); 2475 } 2476 } 2477 2478 /** 2458 2479 * Renders the SVG filters supplied by theme.json. 2459 2480 *
Note: See TracChangeset
for help on using the changeset viewer.