wp/wp-admin/includes/admin-filters.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    58 }
    58 }
    59 
    59 
    60 add_action( 'admin_print_scripts', 'print_emoji_detection_script' );
    60 add_action( 'admin_print_scripts', 'print_emoji_detection_script' );
    61 add_action( 'admin_print_scripts', 'print_head_scripts', 20 );
    61 add_action( 'admin_print_scripts', 'print_head_scripts', 20 );
    62 add_action( 'admin_print_footer_scripts', '_wp_footer_scripts' );
    62 add_action( 'admin_print_footer_scripts', '_wp_footer_scripts' );
    63 add_action( 'admin_print_styles', 'print_emoji_styles' );
    63 add_action( 'admin_enqueue_scripts', 'wp_enqueue_emoji_styles' );
       
    64 add_action( 'admin_print_styles', 'print_emoji_styles' ); // Retained for backwards-compatibility. Unhooked by wp_enqueue_emoji_styles().
    64 add_action( 'admin_print_styles', 'print_admin_styles', 20 );
    65 add_action( 'admin_print_styles', 'print_admin_styles', 20 );
    65 
    66 
    66 add_action( 'admin_print_scripts-index.php', 'wp_localize_community_events' );
    67 add_action( 'admin_print_scripts-index.php', 'wp_localize_community_events' );
    67 add_action( 'admin_print_scripts-post.php', 'wp_page_reload_on_back_button_js' );
    68 add_action( 'admin_print_scripts-post.php', 'wp_page_reload_on_back_button_js' );
    68 add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' );
    69 add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' );
    78 add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10, 3 );
    79 add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10, 3 );
    79 add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10, 3 );
    80 add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10, 3 );
    80 add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 );
    81 add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 );
    81 
    82 
    82 add_filter( 'wp_refresh_nonces', 'wp_refresh_post_nonces', 10, 3 );
    83 add_filter( 'wp_refresh_nonces', 'wp_refresh_post_nonces', 10, 3 );
       
    84 add_filter( 'wp_refresh_nonces', 'wp_refresh_metabox_loader_nonces', 10, 2 );
    83 add_filter( 'wp_refresh_nonces', 'wp_refresh_heartbeat_nonces' );
    85 add_filter( 'wp_refresh_nonces', 'wp_refresh_heartbeat_nonces' );
    84 
    86 
    85 add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );
    87 add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );
    86 
    88 
    87 add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
    89 add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
   165 // Update the cached policy info when the policy page is updated.
   167 // Update the cached policy info when the policy page is updated.
   166 add_action( 'post_updated', array( 'WP_Privacy_Policy_Content', '_policy_page_updated' ) );
   168 add_action( 'post_updated', array( 'WP_Privacy_Policy_Content', '_policy_page_updated' ) );
   167 
   169 
   168 // Append '(Draft)' to draft page titles in the privacy page dropdown.
   170 // Append '(Draft)' to draft page titles in the privacy page dropdown.
   169 add_filter( 'list_pages', '_wp_privacy_settings_filter_draft_page_titles', 10, 2 );
   171 add_filter( 'list_pages', '_wp_privacy_settings_filter_draft_page_titles', 10, 2 );
       
   172 
       
   173 // Font management.
       
   174 add_action( 'admin_print_styles', 'wp_print_font_faces', 50 );