diff --git a/wp-admin/network/site-info.php b/wp-admin/network/site-info.php index bb17f1e5fe..2163a8203e 100644 --- a/wp-admin/network/site-info.php +++ b/wp-admin/network/site-info.php @@ -34,7 +34,7 @@ if ( isset($_REQUEST['action']) && 'update-site' == $_REQUEST['action'] ) { if ( isset( $_POST['update_home_url'] ) && $_POST['update_home_url'] == 'update' ) { $blog_address = get_blogaddress_by_domain( $_POST['blog']['domain'], $_POST['blog']['path'] ); - if ( get_option( 'siteurl' ) != $blog_address ) + if ( get_option( 'siteurl' ) != $blog_address ) update_option( 'siteurl', $blog_address ); if ( get_option( 'home' ) != $blog_address ) @@ -148,4 +148,4 @@ if ( ! empty( $messages ) ) { user_login , $newdomain . $path, stripslashes( $title ) ); - wp_mail( get_site_option('admin_email'), sprintf( __( '[%s] New Site Created' ), $current_site->site_name ), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' ); + wp_mail( get_site_option('admin_email'), sprintf( __( '[%s] New Site Created' ), $current_site->site_name ), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' ); wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) ); wp_redirect( add_query_arg( array('update' => 'added'), 'site-new.php' ) ); exit;