[wp-trac] [WordPress Trac] #25158: Use get_current_site() instead of the $current_site global when possible
WordPress Trac
noreply at wordpress.org
Wed Nov 13 04:28:03 UTC 2013
#25158: Use get_current_site() instead of the $current_site global when possible
------------------------------+-----------------------------
Reporter: jeremyfelt | Owner: SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.8
Component: Multisite | Version:
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: closed => reopened
* resolution: fixed =>
Comment:
[attachment:25158.5.diff] reverts [26124] and checks for `is_multisite()`
before calling `get_current_site()`. Also removes the global from
`is_main_network()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25158#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list