WordPress.org

Make WordPress Core

Ticket #24487: 24487_trunk.patch

File 24487_trunk.patch, 497 bytes (added by OlegCorner, 7 years ago)
  • formatting.

    old new  
    18621862                }
    18631863
    18641864                // Test for invalid characters
    1865                 if ( !preg_match('/^[a-z0-9-]+$/i', $sub ) ) {
     1865          if ( !preg_match('/^[\d|\p{Ll}]+$/u', $sub ) ) {
    18661866                        return apply_filters( 'is_email', false, $email, 'sub_invalid_chars' );
    18671867                }
    18681868        }
     
    33903390 */
    33913391function wp_unslash( $value ) {
    33923392        return stripslashes_deep( $value );
    3393 }
    3394  No newline at end of file
     3393}