Changeset 8704
- Timestamp:
- 08/21/08 22:58:29 (3 months ago)
- Files:
-
- trunk/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/formatting.php
r8662 r8704 447 447 if ( $strict ) 448 448 $username = preg_replace('|[^a-z0-9 _.\-@]|i', '', $username); 449 450 // Consolidate contiguous whitespace 451 $username = preg_replace('|\s+|', ' ', $username); 449 452 450 453 return apply_filters('sanitize_user', $username, $raw_username, $strict);
