Changeset 54358
- Timestamp:
- 09/29/2022 06:53:57 PM (2 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r54278 r54358 558 558 add_action( 'wp_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 ); 559 559 add_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' ); 560 add_action( 'wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles' ); 560 561 add_action( 'admin_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 ); 561 562 add_action( 'admin_enqueue_scripts', 'wp_common_block_scripts_and_styles' ); 563 add_action( 'admin_enqueue_scripts', 'wp_enqueue_classic_theme_styles' ); 562 564 add_action( 'enqueue_block_assets', 'wp_enqueue_registered_block_scripts_and_styles' ); 563 565 add_action( 'enqueue_block_assets', 'enqueue_block_styles_assets', 30 ); -
trunk/src/wp-includes/script-loader.php
r54354 r54358 3641 3641 add_action( 'admin_init', $fn_generate_and_enqueue_editor_styles ); 3642 3642 } 3643 3644 /** 3645 * Loads classic theme styles on classic themes. 3646 * 3647 * This is needed for backwards compatibility for button blocks specifically. 3648 */ 3649 function wp_enqueue_classic_theme_styles() { 3650 if ( ! wp_is_block_theme() ) { 3651 $suffix = wp_scripts_get_suffix(); 3652 wp_register_style( 'classic-theme-styles', "/wp-includes/css/dist/block-library/classic$suffix.css", array(), true ); 3653 wp_enqueue_style( 'classic-theme-styles' ); 3654 } 3655 }
Note: See TracChangeset
for help on using the changeset viewer.