[wp-trac] [WordPress Trac] #37413: Use `get_site()` instead of global `$current_blog`
WordPress Trac
noreply at wordpress.org
Tue Jul 19 16:42:36 UTC 2016
#37413: Use `get_site()` instead of global `$current_blog`
--------------------------------+----------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Networks and Sites | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: multisite |
--------------------------------+----------------------------
`get_site()` falls back to the current site if no parameter is provided.
That means we can use it anywhere we currently work with globals (or maybe
even `get_current_blog_id()`).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37413>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list