Changeset 37317
- Timestamp:
- 04/27/2016 05:54:40 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r37316 r37317 2037 2037 do_action( 'retrieve_password', $user->user_login ); 2038 2038 2039 $allow = true; 2040 if ( is_multisite() && is_user_spammy( $user ) ) { 2041 $allow = false; 2042 } 2043 2039 2044 /** 2040 2045 * Filter whether to allow a password to be reset. … … 2045 2050 * @param int $user_data->ID The ID of the user attempting to reset a password. 2046 2051 */ 2047 $allow = apply_filters( 'allow_password_reset', true, $user->ID );2052 $allow = apply_filters( 'allow_password_reset', $allow, $user->ID ); 2048 2053 2049 2054 if ( ! $allow ) {
Note: See TracChangeset
for help on using the changeset viewer.