mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user