delete_user_setting() and remove_action() were getting called with too many args. props rlerdorf. see #24210.
git-svn-id: http://core.svn.wordpress.org/trunk@24125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0d8d513a8d
commit
17ddaa8de0
|
@ -347,7 +347,7 @@ function default_password_nag_edit_user($user_ID, $old_data) {
|
||||||
$new_data = get_userdata($user_ID);
|
$new_data = get_userdata($user_ID);
|
||||||
|
|
||||||
if ( $new_data->user_pass != $old_data->user_pass ) { //Remove the nag if the password has been changed.
|
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);
|
update_user_option($user_ID, 'default_password_nag', false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ function add_feed($feedname, $function) {
|
||||||
$wp_rewrite->feeds[] = $feedname;
|
$wp_rewrite->feeds[] = $feedname;
|
||||||
$hook = 'do_feed_' . $feedname;
|
$hook = 'do_feed_' . $feedname;
|
||||||
// Remove default function hook
|
// Remove default function hook
|
||||||
remove_action($hook, $hook, 10, 1);
|
remove_action($hook, $hook);
|
||||||
add_action($hook, $function, 10, 1);
|
add_action($hook, $function, 10, 1);
|
||||||
return $hook;
|
return $hook;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue