[wp-trac] [WordPress Trac] #22090: Eliminate use of global $current_blog

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 3 21:10:04 UTC 2012


#22090: Eliminate use of global $current_blog
--------------------------+--------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Multisite     |     Version:  3.4.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by nacin):

 Looks like XML-RPC's _multisite_getUsersBlogs() needs a bit of a rewrite
 to match the logic in wp_getUsersBlogs().

 Otherwise, affected areas are ms_site_check(), ms-files.php,
 user/admin.php and network/admin.php, ms-delete-site.php, some odd
 $current_blog-switching action in the importer class, and is_main_site()
 itself. This should be fairly easy to remove.

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


More information about the wp-trac mailing list