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
This commit is contained in:
Scott Taylor 2016-08-22 04:48:28 +00:00
parent d31456b615
commit cd6d2bae92
2 changed files with 1 additions and 6 deletions

View File

@ -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.

View File

@ -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'] ) ) {