[wp-trac] [WordPress Trac] #25158: Use get_current_site() instead of the $current_site global when possible

WordPress Trac noreply at wordpress.org
Sun Sep 8 21:36:20 UTC 2013


#25158: Use get_current_site() instead of the $current_site global when possible
------------------------------+------------------
 Reporter:  jeremyfelt        |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.7
Component:  Multisite         |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by SergeyBiryukov):

 [attachment:25158.4.diff] keeps the variable in `wpmu_delete_blog()`,
 where it's also used twice in the same line.

 We should probably keep the global in `admin-header.php`, see [18526] and
 #16143.

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


More information about the wp-trac mailing list