Make WordPress Core


Ignore:
Timestamp:
04/28/2022 04:37:29 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Bootstrap/Load: Move some more administration-related hooks to admin-filters.php.

Follow-up to [53266].

Fixes #54795.

File:
1 edited

Legend:

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

    r53266 r53304  
    3939
    4040// Admin color schemes.
     41add_action( 'admin_init', 'register_admin_color_schemes', 1 );
    4142add_action( 'admin_head', 'wp_color_scheme_settings' );
    4243add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
     
    4546add_action( 'admin_init', 'wp_admin_headers' );
    4647add_action( 'login_init', 'wp_admin_headers' );
     48add_action( 'admin_init', 'send_frame_options_header', 10, 0 );
    4749add_action( 'admin_head', 'wp_admin_canonical_url' );
    4850add_action( 'admin_head', 'wp_site_icon' );
     
    5658}
    5759
     60add_action( 'admin_print_scripts', 'print_emoji_detection_script' );
     61add_action( 'admin_print_scripts', 'print_head_scripts', 20 );
     62add_action( 'admin_print_footer_scripts', '_wp_footer_scripts' );
     63add_action( 'admin_print_styles', 'print_emoji_styles' );
     64add_action( 'admin_print_styles', 'print_admin_styles', 20 );
     65
     66add_action( 'admin_print_scripts-index.php', 'wp_localize_community_events' );
    5867add_action( 'admin_print_scripts-post.php', 'wp_page_reload_on_back_button_js' );
    5968add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' );
Note: See TracChangeset for help on using the changeset viewer.