delete_user_setting() and remove_action() were getting called with too many args. props rlerdorf. see #24210.
git-svn-id: https://develop.svn.wordpress.org/trunk@24125 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
58b95c090e
commit
2523656757
@ -347,7 +347,7 @@ function default_password_nag_edit_user($user_ID, $old_data) {
|
||||
$new_data = get_userdata($user_ID);
|
||||
|
||||
if ( $new_data->user_pass != $old_data->user_pass ) { //Remove the nag if the password has been changed.
|
||||
delete_user_setting('default_password_nag', $user_ID);
|
||||
delete_user_setting('default_password_nag');
|
||||
update_user_option($user_ID, 'default_password_nag', false, true);
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ function add_feed($feedname, $function) {
|
||||
$wp_rewrite->feeds[] = $feedname;
|
||||
$hook = 'do_feed_' . $feedname;
|
||||
// Remove default function hook
|
||||
remove_action($hook, $hook, 10, 1);
|
||||
remove_action($hook, $hook);
|
||||
add_action($hook, $function, 10, 1);
|
||||
return $hook;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user