Ticket #17890: 17890.diff
File 17890.diff, 854 bytes (added by , 13 years ago) |
---|
-
wp-admin/network/site-new.php
44 44 wp_die( sprintf( __('The following words are reserved for use by WordPress functions and cannot be used as blog names: <code>%s</code>' ), implode( '</code>, <code>', $subdirectory_reserved_names ) ) ); 45 45 } 46 46 47 $email = sanitize_email( $blog['email'] );47 $email = $blog['email']; 48 48 $title = $blog['title']; 49 49 50 50 if ( empty( $domain ) ) 51 51 wp_die( __( 'Missing or invalid site address.' ) ); 52 52 if ( empty( $email ) ) 53 53 wp_die( __( 'Missing email address.' ) ); 54 if ( ! is_email( $email) )54 if ( ! ( $email = sanitize_email( $email ) ) ) 55 55 wp_die( __( 'Invalid email address.' ) ); 56 56 57 57 if ( is_subdomain_install() ) {