Make WordPress Core

Ticket #56990: 56990.2.diff

File 56990.2.diff, 690 bytes (added by adamsilverstein, 16 months ago)
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index 27defd0659..f3c3a00848 100644
    function _wp_theme_json_webfonts_handler() { 
    36663666 */
    36673667function wp_enqueue_classic_theme_styles() {
    36683668        if ( ! WP_Theme_JSON_Resolver::theme_has_support() ) {
     3669                // Only enqueue classic-themes CSS when the content includes a button.
     3670                if ( ! has_block( 'button' ) ) {
     3671                        return;
     3672                }
    36693673                $suffix = wp_scripts_get_suffix();
    36703674                wp_register_style( 'classic-theme-styles', '/' . WPINC . "/css/classic-themes$suffix.css", array(), true );
    36713675                wp_enqueue_style( 'classic-theme-styles' );