Remove a now unused switch_to_blog() and restore_current_blog() in site-info.php

Now that we decide when to automatically update `home` and `siteurl`, we no longer need to switch to the site while displaying the form output.

See #32503.

Built from https://develop.svn.wordpress.org/trunk@32761


git-svn-id: http://core.svn.wordpress.org/trunk@32732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2015-06-14 08:23:26 +00:00
parent da35c25fb7
commit 8daec04557
2 changed files with 1 additions and 4 deletions

View File

@ -158,8 +158,6 @@ if ( ! empty( $messages ) ) {
echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>';
}
}
switch_to_blog( $id );
?>
<form method="post" action="site-info.php?action=update-site">
<?php wp_nonce_field( 'edit-site' ); ?>
@ -230,5 +228,4 @@ switch_to_blog( $id );
</div>
<?php
restore_current_blog();
require( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32760';
$wp_version = '4.3-alpha-32761';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.