[wp-trac] [WordPress Trac] #20589: domain_exists should add trailing slash to path
WordPress Trac
noreply at wordpress.org
Wed Mar 19 20:33:15 UTC 2014
#20589: domain_exists should add trailing slash to path
-------------------------------------+------------------------
Reporter: ejdanderson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Networks and Sites | Version: 3.0
Severity: minor | Resolution:
Keywords: has-patch needs-testing | Focuses: multisite
-------------------------------------+------------------------
Comment (by jeremyfelt):
We can't use `get_site_by_path()` as a direct replacement in current trunk
as it will always search for `/` as a path in addition to the passed
`$path` argument.
The current patch does add tests and trailing slashes to `domain_exists()`
so that current behavior gets a bit better. It would be nice to drop the
site ID check at some point in the future, but this can probably go in to
solve the immediate issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20589#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list