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-includes/default-filters.php

    r53282 r53304  
    55 *
    66 * If you need to remove a default hook, this file will
    7  * give you the priority for which to use to remove the
    8  * hook.
     7 * give you the priority to use for removing the hook.
    98 *
    109 * Not all of the default hooks are found in this file.
    11  * For instance, administration related hooks are located in
     10 * For instance, administration-related hooks are located in
    1211 * wp-admin/includes/admin-filters.php.
    1312 *
     
    404403add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 3 );
    405404add_action( 'sanitize_comment_cookies', 'sanitize_comment_cookies' );
    406 add_action( 'admin_print_scripts', 'print_emoji_detection_script' );
    407 add_action( 'admin_print_scripts', 'print_head_scripts', 20 );
    408 add_action( 'admin_print_footer_scripts', '_wp_footer_scripts' );
    409 add_action( 'admin_print_styles', 'print_emoji_styles' );
    410 add_action( 'admin_print_styles', 'print_admin_styles', 20 );
    411405add_action( 'init', 'smilies_init', 5 );
    412406add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 );
     
    419413add_action( 'transition_post_status', '_update_term_count_on_transition_post_status', 10, 3 );
    420414add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce' );
    421 add_action( 'admin_init', 'send_frame_options_header', 10, 0 );
    422415
    423416// Privacy.
     
    465458// Timezone.
    466459add_filter( 'pre_option_gmt_offset', 'wp_timezone_override_offset' );
    467 
    468 // Admin color schemes.
    469 add_action( 'admin_init', 'register_admin_color_schemes', 1 );
    470460
    471461// If the upgrade hasn't run yet, assume link manager is used.
     
    576566add_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_format_library_assets' );
    577567add_action( 'enqueue_block_editor_assets', 'wp_enqueue_global_styles_css_custom_properties' );
    578 add_action( 'admin_print_scripts-index.php', 'wp_localize_community_events' );
    579568add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' );
    580569add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' );
Note: See TracChangeset for help on using the changeset viewer.