[wp-trac] [WordPress Trac] #22090: Eliminate use of global $current_blog
WordPress Trac
noreply at wordpress.org
Thu Oct 25 16:33:22 UTC 2012
#22090: Eliminate use of global $current_blog
--------------------------+-----------------------
Reporter: ryan | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.5
Component: Multisite | Version: 3.4.2
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------
Changes (by wdfee):
* status: closed => reopened
* resolution: fixed =>
Comment:
(reopened because not sure if closed tickets are read)
If it's important to ask for the $current_site->blog_id, another
suggestion for solution:
{{{
if( isset($current_site->blog_id) && $blog_id == $current_site->blog_id )
return true;
return false;
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22090#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list