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

WordPress Trac noreply at wordpress.org
Mon Mar 3 19:38:41 UTC 2014


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

Comment (by nacin):

 Replying to [comment:36 jeremyfelt]:
 > The default path segments number for both networks and sites is 1. ...
 We *could* think about automatically upping the site path count if
 networks have paths, but this seems like something to let lie for a bit.

 Actually, the default is ''all'' paths, but the functions receive 1 in
 most cases. If a network has a path (which only happens for "subdirectory"
 installs), then get_network_by_path() is run first with a segment number
 of 1. Then get_site_by_path() is run with a segment number of 1 + however
 many segments are in the network's path. Look for the
 is_subdomain_install() call in [27359]. So, your caveat was accounted for.
 :-)

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


More information about the wp-trac mailing list