+ if ( isset( $_POST['update_home_url'] ) && $_POST['update_home_url'] == 'update' ) {
+ $new_details = get_blog_details( $id, false );
+ $blog_address = esc_url_raw( $new_details->domain . $new_details->path );
+ if ( get_option( 'siteurl' ) != $blog_address ) {
+ update_option( 'siteurl', $blog_address );
+ }
+ if ( get_option( 'home' ) != $blog_address ) {
+ update_option( 'home', $blog_address );
+ }
+ }
+