mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 00:31:28 +01:00
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:
parent
d31456b615
commit
cd6d2bae92
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
@ -285,14 +285,9 @@ function wp_login_viewport_meta() {
|
|||||||
/**
|
/**
|
||||||
* Handles sending password retrieval email to user.
|
* 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
|
* @return bool|WP_Error True: when finish. WP_Error on error
|
||||||
*/
|
*/
|
||||||
function retrieve_password() {
|
function retrieve_password() {
|
||||||
global $wpdb, $wp_hasher;
|
|
||||||
|
|
||||||
$errors = new WP_Error();
|
$errors = new WP_Error();
|
||||||
|
|
||||||
if ( empty( $_POST['user_login'] ) ) {
|
if ( empty( $_POST['user_login'] ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user