mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01: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. 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:
parent
da35c25fb7
commit
8daec04557
|
|
@ -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' );
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user