mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
In the style of #30947 and default-filters.php, add 2 new files to wp-admin/includes:
`admin-filters.php` `ms-admin-filters.php` There are random actions and filters littered among files like `misc.php`. These files contain functions that won't work outside of admin context and are typically only loaded in files that have already loaded the admin bootstrap. See #32529. git-svn-id: https://develop.svn.wordpress.org/trunk@32653 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -386,7 +386,6 @@ function wp_revoke_user($id) {
|
||||
$user->remove_all_caps();
|
||||
}
|
||||
|
||||
add_action('admin_init', 'default_password_nag_handler');
|
||||
/**
|
||||
* @since 2.8.0
|
||||
*/
|
||||
@@ -409,8 +408,6 @@ function default_password_nag_handler($errors = false) {
|
||||
}
|
||||
}
|
||||
|
||||
add_action('profile_update', 'default_password_nag_edit_user', 10, 2);
|
||||
|
||||
/**
|
||||
* @since 2.8.0
|
||||
*/
|
||||
@@ -428,8 +425,6 @@ function default_password_nag_edit_user($user_ID, $old_data) {
|
||||
}
|
||||
}
|
||||
|
||||
add_action('admin_notices', 'default_password_nag');
|
||||
|
||||
/**
|
||||
* @since 2.8.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user