[wp-trac] [WordPress Trac] #45017: REST API: Expose permalink_template in the Posts controller
WordPress Trac
noreply at wordpress.org
Wed Dec 12 02:11:27 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 fixed-5.0 | Focuses: rest-api
------------------------------------------------+--------------------------
Changes (by jeremyfelt):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"43980" 43980]:
{{{
#!CommitTicketReference repository="" revision="43980"
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.
Merges [43720] to trunk.
Props danielbachhuber, rahulsprajapati.
Fixes #45017.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45017#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list