wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_enqueue_classic_theme_styles › WordPress Function

Since6.1.0
已弃用n/a
› wp_enqueue_classic_theme_styles ( 没有参数 )
定义在:
文档:
Change Log:
  • 6.2.0
  • 6.8.0

Loads classic theme styles when the current theme lacks a theme.json file.

This is used for backwards compatibility for Button and File blocks specifically.


源码

function wp_enqueue_classic_theme_styles() {
	if ( ! wp_theme_has_theme_json() ) {
		wp_enqueue_style( 'classic-theme-styles' );
	}
}