WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-includes/formatting.php

    r8298 r8748  
    332332    if ( $strict )
    333333        $username = preg_replace('|[^a-z0-9 _.\-@]|i', '', $username);
     334
     335    // Consolidate contiguous whitespace
     336    $username = preg_replace('|\s+|', ' ', $username);
    334337
    335338    return apply_filters('sanitize_user', $username, $raw_username, $strict);
Note: See TracChangeset for help on using the changeset viewer.