Make WordPress Core


Ignore:
Timestamp:
07/05/2023 04:19:39 PM (17 months ago)
Author:
davidbaumwald
Message:

Default Filters: Correct hook type for wp_print_scripts and customize_controls_print_styles.

Props Cybr, bhi3315.
Fixes #58665.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r56101 r56140  
    590590add_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_format_library_assets' );
    591591add_action( 'enqueue_block_editor_assets', 'wp_enqueue_global_styles_css_custom_properties' );
    592 add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' );
     592add_action( 'wp_print_scripts', 'wp_just_in_time_script_localization' );
    593593add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' );
    594 add_filter( 'customize_controls_print_styles', 'wp_resource_hints', 1 );
     594add_action( 'customize_controls_print_styles', 'wp_resource_hints', 1 );
    595595add_action( 'admin_head', 'wp_check_widget_editor_deps' );
    596596add_filter( 'block_editor_settings_all', 'wp_add_editor_classic_theme_styles' );
Note: See TracChangeset for help on using the changeset viewer.