Fix case. fixes #7344 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8411 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a619cbba87
commit
1a5fd227b1
|
@ -129,7 +129,7 @@ function retrieve_password() {
|
||||||
do_action('retreive_password', $user_login); // Misspelled and deprecated
|
do_action('retreive_password', $user_login); // Misspelled and deprecated
|
||||||
do_action('retrieve_password', $user_login);
|
do_action('retrieve_password', $user_login);
|
||||||
|
|
||||||
$allow = apply_filters('allow_password_reset', true, $user_data->id);
|
$allow = apply_filters('allow_password_reset', true, $user_data->ID);
|
||||||
|
|
||||||
if ( ! $allow )
|
if ( ! $allow )
|
||||||
return new WP_Error('no_password_reset', __('Password reset is not allowed for this user'));
|
return new WP_Error('no_password_reset', __('Password reset is not allowed for this user'));
|
||||||
|
|
Loading…
Reference in New Issue