[wp-trac] [WordPress Trac] #42452: filter_rest_url_for_leading_slash assertion is broken
WordPress Trac
noreply at wordpress.org
Tue Nov 28 07:09:46 UTC 2017
#42452: filter_rest_url_for_leading_slash assertion is broken
------------------------------+---------------------
Reporter: rmccue | Owner: rmccue
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.0
Component: REST API | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+---------------------
Changes (by rmccue):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"42250"]:
{{{
#!CommitTicketReference repository="" revision="42250"
REST API: Ensure rest_url() consistently has leading slash.
`rest_url()` inconsistent addes slashes to the passed path depending on
whether the site has pretty permalinks enabled. Apart from being
inconsistent, this also caused the unit tests to fail when pretty
permalinks are enabled.
Props frank-klein.
Fixes #42452. See #41451.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42452#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list