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

WordPress Trac noreply at wordpress.org
Thu Oct 11 22:24:54 UTC 2018


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

 * owner:  (none) => danielbachhuber
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43720" 43720]:
 {{{
 #!CommitTicketReference repository="" revision="43720"
 REST API: Include `permalink_template`/`generated_slug` for Posts

 In order for clients to present permalink previews, the REST API must
 share the computed results of `get_sample_permalink()`. These two values
 are now exposed as `permalink_template` and `generated_slug` for public,
 viewable post types, but only for `context=edit`.

 Props danielbachhuber, rahulsprajapati.
 Fixes #45017.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45017#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list