Ticket #17890: 17890.2.diff
File 17890.2.diff, 996 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/network/site-new.php
49 49 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 ) ) ); 50 50 } 51 51 52 $email = sanitize_email( $blog['email'] );53 52 $title = $blog['title']; 54 53 55 54 if ( empty( $domain ) ) 56 55 wp_die( __( 'Missing or invalid site address.' ) ); 57 if ( empty( $email ) ) 56 57 if ( empty( $blog['email'] ) ) { 58 58 wp_die( __( 'Missing email address.' ) ); 59 if ( !is_email( $email ) ) 59 } 60 61 $email = sanitize_email( $blog['email'] ); 62 if ( ! is_email( $email ) ) { 60 63 wp_die( __( 'Invalid email address.' ) ); 64 } 61 65 62 66 if ( is_subdomain_install() ) { 63 67 $newdomain = $domain . '.' . preg_replace( '|^www\.|', '', $current_site->domain );