[wp-trac] [WordPress Trac] #21459: Cleanup switch_to_blog() and restore_current_blog()
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 22 18:04:20 UTC 2012
#21459: Cleanup switch_to_blog() and restore_current_blog()
-------------------------+-----------------------
Reporter: ryan | Owner: ryan
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.5
Component: Multisite | Version: 3.4.1
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+-----------------------
Comment (by nacin):
I am thinking that $switched should be unused in core. Set, but never
referenced. Comment every set with a "hey, use ms_is_switched()".
ms_is_switched() can return ! empty( stack ).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21459#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list