Changeset 29877
- Timestamp:
- 10/12/2014 12:21:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/site-new.php
r29030 r29877 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 ( isset( $blog['email'] ) && '' === trim( $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() ) {
Note: See TracChangeset
for help on using the changeset viewer.