[wp-trac] [WordPress Trac] #45017: REST API: Expose permalink_template in the Posts controller

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


#45017: REST API: Expose permalink_template in the Posts controller
------------------------------------------------+--------------------------
 Reporter:  danielbachhuber                     |       Owner:
                                                |  danielbachhuber
     Type:  enhancement                         |      Status:  reopened
 Priority:  normal                              |   Milestone:  5.0
Component:  REST API                            |     Version:
 Severity:  normal                              |  Resolution:
 Keywords:  has-patch has-unit-tests fixed-5.0  |     Focuses:  rest-api
------------------------------------------------+--------------------------

Comment (by danielbachhuber):

 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/45017#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list