Make WordPress Core

Ticket #23430: username-patch.patch

File username-patch.patch, 499 bytes (added by mario-siteground, 12 years ago)
  • wp-includes/formatting.php

     
    908908
    909909        // If strict, reduce to ASCII for max portability.
    910910        if ( $strict )
    911                 $username = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $username );
     911                $username = preg_replace( '|[^a-z0-9+ _.\-@]|i', '', $username );
    912912
    913913        $username = trim( $username );
    914914        // Consolidate contiguous whitespace