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.


git-svn-id: https://develop.svn.wordpress.org/trunk@32761 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2015-06-14 08:22:34 +00:00
parent 4b0eaacd84
commit 2cdea6f446

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' );