[wp-trac] [WordPress Trac] #37414: Use `get_network()` instead of global `$current_site`

WordPress Trac noreply at wordpress.org
Sat Aug 27 11:32:02 UTC 2016


#37414: Use `get_network()` instead of global `$current_site`
--------------------------------+------------------------
 Reporter:  flixos90            |       Owner:  flixos90
     Type:  enhancement         |      Status:  assigned
 Priority:  normal              |   Milestone:  4.7
Component:  Networks and Sites  |     Version:  4.6
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  multisite
--------------------------------+------------------------

Comment (by flixos90):

 @wonderboymusic: Seeing the changeset above, not sure if that's the right
 step as we should start to use `get_network()` instead of
 `get_current_site()` or the global `$current_site`. Maybe we should make
 the new functions `get_site()` and `get_network()` compatible with non-
 multisite and then move these too.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37414#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list