Skip to content

Commit 2cdea6f

Browse files
committed
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
1 parent 4b0eaac commit 2cdea6f

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/wp-admin/network/site-info.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@
158158
echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>';
159159
}
160160
}
161-
162-
switch_to_blog( $id );
163161
?>
164162
<form method="post" action="site-info.php?action=update-site">
165163
<?php wp_nonce_field( 'edit-site' ); ?>
@@ -230,5 +228,4 @@
230228

231229
</div>
232230
<?php
233-
restore_current_blog();
234231
require( ABSPATH . 'wp-admin/admin-footer.php' );

0 commit comments

Comments
 (0)