mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Login: retrieve_password() does not need to import 2 globals that it does not use.
See #37699. git-svn-id: https://develop.svn.wordpress.org/trunk@38304 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -285,14 +285,9 @@ function wp_login_viewport_meta() {
|
||||
/**
|
||||
* Handles sending password retrieval email to user.
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global PasswordHash $wp_hasher Portable PHP password hashing framework.
|
||||
*
|
||||
* @return bool|WP_Error True: when finish. WP_Error on error
|
||||
*/
|
||||
function retrieve_password() {
|
||||
global $wpdb, $wp_hasher;
|
||||
|
||||
$errors = new WP_Error();
|
||||
|
||||
if ( empty( $_POST['user_login'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user