[wp-trac] [WordPress Trac] #27003: Introduce wp_get_network() and begin cleanup of multisite load

WordPress Trac noreply at wordpress.org
Mon Feb 17 07:10:25 UTC 2014


#27003: Introduce wp_get_network() and begin cleanup of multisite load
--------------------------------------------------+------------------------
 Reporter:  jeremyfelt                            |       Owner:
     Type:  enhancement                           |      Status:  new
 Priority:  normal                                |   Milestone:  3.9
Component:  Bootstrap/Load                        |     Version:  trunk
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch needs-testing dev-feedback  |     Focuses:  multisite
--------------------------------------------------+------------------------

Comment (by nacin):

 Some thoughts on function naming:

 wp_get_network() without any arguments could replace get_current_site().
 It would be lovely to ditch "$current_site" absolutely everywhere. Even in
 this file; we could possibly make it a reference to a new variable.

 wp_get_site() is probably a bit too broadly named. Though we don't use it
 all that much, the "ms" prefix here could help. but, this function isn't
 yet a must-have. We could wait for some cleanups and deprecations for when
 "site" actually refers to "network". We already have is_main_site() but
 also get_current_blog_id()... we're getting there.

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


More information about the wp-trac mailing list