Ticket #33826: 33826.patch
| File 33826.patch, 1.4 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/pluggable.php
1691 1691 * @since 2.0.0 1692 1692 * @since 4.3.0 The `$plaintext_pass` parameter was changed to `$notify`. 1693 1693 * 1694 * @global wpdb $wpdb WordPress database object for queries. 1695 * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance. 1696 * 1694 1697 * @param int $user_id User ID. 1695 1698 * @param string $notify Optional. Type of notification that should happen. Accepts 'admin' or an empty 1696 1699 * string (admin only), or 'both' (admin and user). The empty string value was kept 1697 1700 * for backward-compatibility purposes with the renamed parameter. Default empty. 1698 1701 */ 1699 1702 function wp_new_user_notification( $user_id, $notify = '' ) { 1700 global $wpdb ;1703 global $wpdb, $wp_hasher; 1701 1704 $user = get_userdata( $user_id ); 1702 1705 1703 1706 // The blogname option is escaped with esc_html on the way into the database in sanitize_option … … 1821 1824 * @param string|int $action The nonce action. 1822 1825 * @param WP_User $user The current user object. 1823 1826 * @param string $token The user's session token. 1824 */ 1827 */ 1825 1828 do_action( 'wp_verify_nonce_failed', $nonce, $action, $user, $token ); 1826 1829 1827 1830 // Invalid nonce