[wp-trac] [WordPress Trac] #14190: switch_to_blog() should affect $current_blog global

WordPress Trac noreply at wordpress.org
Wed Oct 17 18:28:11 UTC 2012


#14190: switch_to_blog() should affect $current_blog global
--------------------------+-----------------------
 Reporter:  filosofo      |       Owner:  filosofo
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Multisite     |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by nacin):

 Seeing that it is now only used in sunrise/ms-settings, and that
 $current_site is the same thing and also not switched, that makes sense. I
 actually think the case could be made to not switch them, back compat
 concerns aside. But   , the possible side effects of switching
 $current_blog aren't pretty either, and we've already done a lot of
 changes to switching this release.

 We should probably look to phase out $current_site with a push for multi-
 network support in a future version.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14190#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list