Make WordPress Core

Ticket #56990: 56990.diff

File 56990.diff, 1.9 KB (added by adamsilverstein, 19 months ago)
  • src/wp-includes/default-filters.php

    diff --git src/wp-includes/default-filters.php src/wp-includes/default-filters.php
    index e9ca31f5f7..93a25bf8e1 100644
    add_action( 'wp_default_scripts', 'wp_default_packages' ); 
    557557
    558558add_action( 'wp_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 );
    559559add_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' );
    560 add_action( 'wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles' );
    561560add_action( 'admin_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 );
    562561add_action( 'admin_enqueue_scripts', 'wp_common_block_scripts_and_styles' );
    563562add_action( 'enqueue_block_assets', 'wp_enqueue_registered_block_scripts_and_styles' );
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index fd1bf4b6fa..53b083c790 100644
    function _wp_theme_json_webfonts_handler() { 
    36573657        add_action( 'admin_init', $fn_generate_and_enqueue_editor_styles );
    36583658}
    36593659
    3660 /**
    3661  * Loads classic theme styles on classic themes in the frontend.
    3662  *
    3663  * This is needed for backwards compatibility for button blocks specifically.
    3664  *
    3665  * @since 6.1.0
    3666  */
    3667 function wp_enqueue_classic_theme_styles() {
    3668         if ( ! WP_Theme_JSON_Resolver::theme_has_support() ) {
    3669                 $suffix = wp_scripts_get_suffix();
    3670                 wp_register_style( 'classic-theme-styles', '/' . WPINC . "/css/classic-themes$suffix.css", array(), true );
    3671                 wp_enqueue_style( 'classic-theme-styles' );
    3672         }
    3673 }
    3674 
    36753660/**
    36763661 * Loads classic theme styles on classic themes in the editor.
    36773662 *
    function wp_enqueue_classic_theme_styles() { 
    36833668 * @return array A filtered array of editor settings.
    36843669 */
    36853670function wp_add_editor_classic_theme_styles( $editor_settings ) {
     3671        return $editor_settings;
    36863672        if ( WP_Theme_JSON_Resolver::theme_has_support() ) {
    36873673                return $editor_settings;
    36883674        }