Make WordPress Core

Ticket #33826: 33826.patch

File 33826.patch, 1.4 KB (added by ocean90, 10 years ago)
  • src/wp-includes/pluggable.php

     
    16911691 * @since 2.0.0
    16921692 * @since 4.3.0 The `$plaintext_pass` parameter was changed to `$notify`.
    16931693 *
     1694 * @global wpdb         $wpdb      WordPress database object for queries.
     1695 * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
     1696 *
    16941697 * @param int    $user_id User ID.
    16951698 * @param string $notify  Optional. Type of notification that should happen. Accepts 'admin' or an empty
    16961699 *                        string (admin only), or 'both' (admin and user). The empty string value was kept
    16971700 *                        for backward-compatibility purposes with the renamed parameter. Default empty.
    16981701 */
    16991702function wp_new_user_notification( $user_id, $notify = '' ) {
    1700         global $wpdb;
     1703        global $wpdb, $wp_hasher;
    17011704        $user = get_userdata( $user_id );
    17021705
    17031706        // The blogname option is escaped with esc_html on the way into the database in sanitize_option
     
    18211824         * @param string|int $action The nonce action.
    18221825         * @param WP_User    $user   The current user object.
    18231826         * @param string     $token  The user's session token.
    1824          */ 
     1827         */
    18251828        do_action( 'wp_verify_nonce_failed', $nonce, $action, $user, $token );
    18261829
    18271830        // Invalid nonce