Changeset 34856 for trunk/src/wp-includes/user-functions.php
- Timestamp:
- 10/06/2015 05:34:47 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user-functions.php
r34820 r34856 1177 1177 * 1178 1178 * @since 2.0.1 1179 * @since 4.4.0 Empty sanitized usernames are now considered invalid 1179 1180 * 1180 1181 * @param string $username Username. … … 1183 1184 function validate_username( $username ) { 1184 1185 $sanitized = sanitize_user( $username, true ); 1185 $valid = ( $sanitized == $username ); 1186 $valid = ( $sanitized == $username && ! empty( $sanitized ) ); 1187 1186 1188 /** 1187 1189 * Filter whether the provided username is valid or not.
Note: See TracChangeset
for help on using the changeset viewer.