Make WordPress Core


Ignore:
Timestamp:
06/14/2015 08:22:34 AM (9 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-info.php

    r32760 r32761  
    159159    }
    160160}
    161 
    162 switch_to_blog( $id );
    163161?>
    164162<form method="post" action="site-info.php?action=update-site">
     
    231229</div>
    232230<?php
    233 restore_current_blog();
    234231require( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.