mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 23:57:41 +02:00
Users: Import the global var $wp_hasher
in wp_new_user_notification()
.
Adds `@global` entries to the DocBlock. Merge of [34052] to the 4.3 branch. See #33826. Built from https://develop.svn.wordpress.org/branches/4.3@34053 git-svn-id: http://core.svn.wordpress.org/branches/4.3@34021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a10c2ba8f3
commit
e52a25130a
@ -1690,12 +1690,15 @@ if ( !function_exists('wp_new_user_notification') ) :
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
* @since 4.3.0 The `$plaintext_pass` parameter was changed to `$notify`.
|
* @since 4.3.0 The `$plaintext_pass` parameter was changed to `$notify`.
|
||||||
*
|
*
|
||||||
|
* @global wpdb $wpdb WordPress database object for queries.
|
||||||
|
* @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
|
||||||
|
*
|
||||||
* @param int $user_id User ID.
|
* @param int $user_id User ID.
|
||||||
* @param string $notify Whether admin and user should be notified ('both') or
|
* @param string $notify Whether admin and user should be notified ('both') or
|
||||||
* only the admin ('admin' or empty).
|
* only the admin ('admin' or empty).
|
||||||
*/
|
*/
|
||||||
function wp_new_user_notification( $user_id, $notify = '' ) {
|
function wp_new_user_notification( $user_id, $notify = '' ) {
|
||||||
global $wpdb;
|
global $wpdb, $wp_hasher;
|
||||||
$user = get_userdata( $user_id );
|
$user = get_userdata( $user_id );
|
||||||
|
|
||||||
// The blogname option is escaped with esc_html on the way into the database in sanitize_option
|
// The blogname option is escaped with esc_html on the way into the database in sanitize_option
|
||||||
|
Loading…
Reference in New Issue
Block a user