[wp-trac] [WordPress Trac] #42452: filter_rest_url_for_leading_slash assertion is broken

WordPress Trac noreply at wordpress.org
Fri Oct 19 11:14:01 UTC 2018

#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 danielbachhuber):

 * status:  reopened => closed
 * resolution:   => fixed


 In [changeset:"43766" 43766]:
 #!CommitTicketReference repository="" revision="43766"
 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.
 Merges [42250] to the 5.0 branch.
 Partially reverts [43720].
 Fixes #42452. See #41451, #45017.

Ticket URL: <https://core.trac.wordpress.org/ticket/42452#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list