Changeset 41348
- Timestamp:
- 09/08/2017 04:32:39 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r41289 r41348 906 906 907 907 // Check for network collision. 908 if ( $network_id == $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $wpdb->site WHERE id = %d", $network_id ) ) ) 909 $errors->add( 'siteid_exists', __( 'The network already exists.' ) ); 908 $network_exists = false; 909 if ( is_multisite() ) { 910 if ( get_network( (int) $network_id ) ) { 911 $errors->add( 'siteid_exists', __( 'The network already exists.' ) ); 912 } 913 } else { 914 if ( $network_id == $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $wpdb->site WHERE id = %d", $network_id ) ) ) { 915 $errors->add( 'siteid_exists', __( 'The network already exists.' ) ); 916 } 917 } 910 918 911 919 if ( ! is_email( $email ) )
Note: See TracChangeset
for help on using the changeset viewer.