Changeset 53266
- Timestamp:
- 04/26/2022 06:30:24 AM (2 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/admin-filters.php
r53228 r53266 13 13 // Dashboard hooks. 14 14 add_action( 'activity_box_end', 'wp_dashboard_quota' ); 15 add_action( 'welcome_panel', 'wp_welcome_panel' ); 15 16 16 17 // Media hooks. … … 37 38 add_filter( 'media_upload_tabs', 'update_gallery_tab' ); 38 39 40 // Admin color schemes. 41 add_action( 'admin_head', 'wp_color_scheme_settings' ); 42 add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); 43 39 44 // Misc hooks. 40 45 add_action( 'admin_init', 'wp_admin_headers' ); 41 46 add_action( 'login_init', 'wp_admin_headers' ); 42 47 add_action( 'admin_head', 'wp_admin_canonical_url' ); 43 add_action( 'admin_head', 'wp_color_scheme_settings' );44 48 add_action( 'admin_head', 'wp_site_icon' ); 45 49 add_action( 'admin_head', 'wp_admin_viewport_meta' ); 46 50 add_action( 'customize_controls_head', 'wp_admin_viewport_meta' ); 51 add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' ); 47 52 48 53 // Prerendering. … … 70 75 71 76 add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' ); 77 78 add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 ); 79 add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' ); 80 add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' ); 72 81 73 82 // Nav Menu hooks. -
trunk/src/wp-includes/default-filters.php
r53160 r53266 8 8 * hook. 9 9 * 10 * Not all of the default hooks are found in default-filters.php 10 * Not all of the default hooks are found in this file. 11 * For instance, administration related hooks are located in 12 * wp-admin/includes/admin-filters.php. 13 * 14 * If a hook should only be called from a specific context 15 * (admin area, multisite environment…), please move it 16 * to a more appropriate file instead. 11 17 * 12 18 * @package WordPress … … 294 300 add_filter( 'editable_slug', 'urldecode' ); 295 301 add_filter( 'editable_slug', 'esc_textarea' ); 296 add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' );297 302 add_filter( 'pingback_ping_source_uri', 'pingback_ping_source_uri' ); 298 303 add_filter( 'xmlrpc_pingback_error', 'xmlrpc_pingback_error' ); … … 414 419 add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce' ); 415 420 add_action( 'admin_init', 'send_frame_options_header', 10, 0 ); 416 add_action( 'welcome_panel', 'wp_welcome_panel' );417 421 418 422 // Privacy. … … 463 467 // Admin color schemes. 464 468 add_action( 'admin_init', 'register_admin_color_schemes', 1 ); 465 add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );466 469 467 470 // If the upgrade hasn't run yet, assume link manager is used. … … 592 595 add_action( 'wp_footer', 'wp_maybe_inline_styles', 1 ); // Run for late-loaded styles in the footer. 593 596 594 add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );595 add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );596 add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );597 598 597 /* 599 598 * Disable "Post Attributes" for wp_navigation post type. The attributes are
Note: See TracChangeset
for help on using the changeset viewer.