[wp-trac] [WordPress Trac] #37414: Use `get_network()` instead of global `$current_site`
WordPress Trac
noreply at wordpress.org
Tue Jul 19 16:44:53 UTC 2016
#37414: Use `get_network()` instead of global `$current_site`
--------------------------------+----------------------------
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_network()` falls back to the current network if no parameter is
provided. That means we can use it anywhere we currently work with globals
or with `get_current_site()`. I think the latter function should be
deprecated afterwards.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37414>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list