Make WordPress Core

Ticket #54795: 54795.diff

File 54795.diff, 3.7 KB (added by SergeyBiryukov, 2 years ago)
  • src/wp-admin/includes/admin-filters.php

     
    3838add_filter( 'media_upload_tabs', 'update_gallery_tab' );
    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' );
    4344
     
    4445// Misc hooks.
    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' );
    4951add_action( 'admin_head', 'wp_admin_viewport_meta' );
     
    5557        add_filter( 'admin_print_styles', 'wp_resource_hints', 1 );
    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' );
     67
    5868add_action( 'admin_print_scripts-post.php', 'wp_page_reload_on_back_button_js' );
    5969add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' );
    6070
  • src/wp-includes/default-filters.php

     
    403403add_action( 'do_favicon', 'do_favicon' );
    404404add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 3 );
    405405add_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 );
    411406add_action( 'init', 'smilies_init', 5 );
    412407add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 );
    413408add_action( 'plugins_loaded', 'wp_maybe_load_embeds', 0 );
     
    418413add_action( 'transition_post_status', '_transition_post_status', 5, 3 );
    419414add_action( 'transition_post_status', '_update_term_count_on_transition_post_status', 10, 3 );
    420415add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce' );
    421 add_action( 'admin_init', 'send_frame_options_header', 10, 0 );
    422416
    423417// Privacy.
    424418add_action( 'user_request_action_confirmed', '_wp_privacy_account_request_confirmed' );
     
    465459// Timezone.
    466460add_filter( 'pre_option_gmt_offset', 'wp_timezone_override_offset' );
    467461
    468 // Admin color schemes.
    469 add_action( 'admin_init', 'register_admin_color_schemes', 1 );
    470 
    471462// If the upgrade hasn't run yet, assume link manager is used.
    472463add_filter( 'default_option_link_manager_enabled', '__return_true' );
    473464
     
    575566add_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets' );
    576567add_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_format_library_assets' );
    577568add_action( 'enqueue_block_editor_assets', 'wp_enqueue_global_styles_css_custom_properties' );
    578 add_action( 'admin_print_scripts-index.php', 'wp_localize_community_events' );
    579569add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' );
    580570add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' );
    581571add_filter( 'customize_controls_print_styles', 'wp_resource_hints', 1 );