WordPress.org

Make WordPress Core

Ticket #24487: 24487_3.5.1.patch

File 24487_3.5.1.patch, 364 bytes (added by OlegCorner, 6 years ago)
  • formatting.

    old new  
    18351835                }
    18361836
    18371837                // Test for invalid characters
    1838                 if ( !preg_match('/^[a-z0-9-]+$/i', $sub ) ) {
     1838                if ( !preg_match('/^[\d|\p{Ll}]+$/u', $sub ) ) {
    18391839                        return apply_filters( 'is_email', false, $email, 'sub_invalid_chars' );
    18401840                }
    18411841        }