Make WordPress Core


Ignore:
Timestamp:
04/26/2022 06:30:24 AM (3 years ago)
Author:
audrasjb
Message:

Bootstrap/load: Move administration related hooks to admin-filters.php.

This change moves some administration related hooks from default-filters.php to admin-filters.php. It also updates the default-filters.php docblock to indicate that contextualized hooks should be located in the most appropriate place.

Props dlh, hellofromTonya, antonvlasenko, audrasjb, azaozz.
Fixes #54795.

File:
1 edited

Legend:

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

    r53228 r53266  
    1313// Dashboard hooks.
    1414add_action( 'activity_box_end', 'wp_dashboard_quota' );
     15add_action( 'welcome_panel', 'wp_welcome_panel' );
    1516
    1617// Media hooks.
     
    3738add_filter( 'media_upload_tabs', 'update_gallery_tab' );
    3839
     40// Admin color schemes.
     41add_action( 'admin_head', 'wp_color_scheme_settings' );
     42add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
     43
    3944// Misc hooks.
    4045add_action( 'admin_init', 'wp_admin_headers' );
    4146add_action( 'login_init', 'wp_admin_headers' );
    4247add_action( 'admin_head', 'wp_admin_canonical_url' );
    43 add_action( 'admin_head', 'wp_color_scheme_settings' );
    4448add_action( 'admin_head', 'wp_site_icon' );
    4549add_action( 'admin_head', 'wp_admin_viewport_meta' );
    4650add_action( 'customize_controls_head', 'wp_admin_viewport_meta' );
     51add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' );
    4752
    4853// Prerendering.
     
    7075
    7176add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );
     77
     78add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
     79add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
     80add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );
    7281
    7382// Nav Menu hooks.
Note: See TracChangeset for help on using the changeset viewer.