From cd6d2bae9200f4d2cfc3c0dc974a34f94bf0ad27 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 22 Aug 2016 04:48:28 +0000 Subject: [PATCH] Login: `retrieve_password()` does not need to import 2 globals that it does not use. See #37699. Built from https://develop.svn.wordpress.org/trunk@38304 git-svn-id: http://core.svn.wordpress.org/trunk@38245 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-login.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 923962ebad..824c4be84b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38303'; +$wp_version = '4.7-alpha-38304'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index 01c754f00d..2d02ed2248 100644 --- a/wp-login.php +++ b/wp-login.php @@ -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'] ) ) {