Ticket #32430: 32430.filters.diff
| File 32430.filters.diff, 1.7 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/user.php
2144 2144 // If password is changing, hash it now 2145 2145 $plaintext_pass = $userdata['user_pass']; 2146 2146 $userdata['user_pass'] = wp_hash_password( $userdata['user_pass'] ); 2147 2147 2148 /** 2148 * Filter to stop the sending of the password change email.2149 * Filter to control whether the password change notification email gets sent. 2149 2150 * 2150 2151 * @since 4.3 2151 2152 * @see wp_insert_user() For $user and $userdata fields. 2152 2153 * 2153 * @param bool Return false to not send theemail.2154 * @param bool $send Whether to send the password change notification email. 2154 2155 * @param array $user The original user array. 2155 2156 * @param array $userdata The updated user array. 2156 *2157 2157 */ 2158 $send_pass_change_email = apply_filters( 'send_pass _change_email', true, $user, $userdata );2158 $send_pass_change_email = apply_filters( 'send_password_change_email', true, $user, $userdata ); 2159 2159 } 2160 2160 2161 2161 if ( $user['user_email'] !== $userdata['user_email'] ) { 2162 2162 /** 2163 * Filter to stop the sending of the email change email.2163 * Filter to control whether the email address change notification email gets sent. 2164 2164 * 2165 2165 * @since 4.3 2166 2166 * @see wp_insert_user() For $user and $userdata fields. 2167 2167 * 2168 * @param bool Return false to not send theemail.2168 * @param bool $send Whether to send the email address change notification email. 2169 2169 * @param array $user The original user array. 2170 2170 * @param array $userdata The updated user array. 2171 *2172 2171 */ 2173 2172 $send_email_change_email = apply_filters( 'send_email_change_email', true, $user, $userdata ); 2174 2173 }