wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_enqueue_classic_theme_styles › WordPress Function
Since6.1.0
已弃用n/a
› wp_enqueue_classic_theme_styles ( 没有参数 )
定义在: |
|
文档: |
Loads classic theme styles on classic themes in the frontend.
This is needed for backwards compatibility for button blocks specifically.源码
function wp_enqueue_classic_theme_styles() { if ( ! wp_theme_has_theme_json() ) { $suffix = wp_scripts_get_suffix(); wp_register_style( 'classic-theme-styles', '/' . WPINC . "/css/classic-themes$suffix.css" ); wp_style_add_data( 'classic-theme-styles', 'path', ABSPATH . WPINC . "/css/classic-themes$suffix.css" ); wp_enqueue_style( 'classic-theme-styles' ); } }