wp_enqueue_classic_theme_styles()

Loads classic theme styles on classic themes in the frontend.


Description

This is needed for backwards compatibility for button blocks specifically.


Top ↑

Source

File: wp-includes/script-loader.php. View all references

function wp_enqueue_classic_theme_styles() {
	if ( ! WP_Theme_JSON_Resolver::theme_has_support() ) {
		$suffix = wp_scripts_get_suffix();
		wp_register_style( 'classic-theme-styles', '/' . WPINC . "/css/classic-themes$suffix.css", array(), true );
		wp_enqueue_style( 'classic-theme-styles' );
	}
}


Top ↑

Changelog

Changelog
Version Description
6.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.