[wp-trac] [WordPress Trac] #44180: REST API: Expose 'preview_link' for viewable post types
WordPress Trac
noreply at wordpress.org
Mon May 21 22:53:52 UTC 2018
#44180: REST API: Expose 'preview_link' for viewable post types
-------------------------------+----------------------------------------
Reporter: danielbachhuber | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Posts, Post Types | Version:
Severity: normal | Keywords: has-patch needs-unit-tests
Focuses: rest-api |
-------------------------------+----------------------------------------
To ensure clients have the correct "Preview" link to display, we should
expose the post's `preview_link` through the REST API.
This value is generated by `get_preview_post_link()` which is filterable
and thus subject to modification by third-party code.
From https://github.com/WordPress/gutenberg/issues/4555
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44180>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list