mirror of
https://github.com/WordPress/WordPress.git
synced 2026-06-19 07:37:07 +00:00
Code Quality: Correct hook registration type mismatches.
Though `add_action()` and `add_filter()` are functionally equivalent internally, for proper semantics the former should be used on actions and the latter on filters. Follow-up to [37920], [38046], [53266]. Props apermo. Fixes #64828. Built from https://develop.svn.wordpress.org/trunk@61866 git-svn-id: http://core.svn.wordpress.org/trunk@61153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -53,7 +53,7 @@ add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' );
|
||||
|
||||
// Prerendering.
|
||||
if ( ! is_customize_preview() ) {
|
||||
add_filter( 'admin_print_styles', 'wp_resource_hints', 1 );
|
||||
add_action( 'admin_print_styles', 'wp_resource_hints', 1 );
|
||||
}
|
||||
|
||||
add_action( 'admin_print_scripts', 'print_emoji_detection_script' );
|
||||
@@ -85,7 +85,7 @@ add_filter( 'wp_refresh_nonces', 'wp_refresh_heartbeat_nonces' );
|
||||
|
||||
add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );
|
||||
|
||||
add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
|
||||
add_filter( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
|
||||
add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
|
||||
add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );
|
||||
|
||||
|
||||
@@ -385,7 +385,7 @@ if (
|
||||
|
||||
// Login actions.
|
||||
add_action( 'login_head', 'wp_robots', 1 );
|
||||
add_filter( 'login_head', 'wp_resource_hints', 8 );
|
||||
add_action( 'login_head', 'wp_resource_hints', 8 );
|
||||
add_action( 'login_head', 'wp_print_head_scripts', 9 );
|
||||
add_action( 'login_head', 'print_admin_styles', 9 );
|
||||
add_action( 'login_head', 'wp_site_icon', 99 );
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.0-beta3-61865';
|
||||
$wp_version = '7.0-beta3-61866';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user