[wp-trac] [WordPress Trac] #27003: Introduce wp_get_network() and begin cleanup of multisite load
WordPress Trac
noreply at wordpress.org
Mon Mar 3 23:02:19 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 jeremyfelt):
Replying to [comment:37 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.
Ahh, I was mixing subdomains and subdirectories. Caveat Empty. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27003#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list