WordPress.org

Make WordPress Core

Opened 4 weeks ago

#44180 new enhancement

REST API: Expose 'preview_link' for viewable post types

Reported by: danielbachhuber Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch needs-unit-tests
Focuses: rest-api Cc:

Description

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

Attachments (1)

44180.1.diff (4.8 KB) - added by danielbachhuber 4 weeks ago.

Download all attachments as: .zip

Change History (1)

Note: See TracTickets for help on using tickets.