Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#44180 closed enhancement (wontfix)

REST API: Expose 'preview_link' for viewable post types

Reported by: danielbachhuber's profile danielbachhuber Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: rest-api Cc:


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.


Attachments (1)

44180.1.diff (4.8 KB) - added by danielbachhuber 6 years ago.

Download all attachments as: .zip

Change History (2)

#1 @danielbachhuber
6 years ago

  • Keywords has-patch needs-unit-tests removed
  • Milestone 5.0 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Closing in favor of #43316

In the Gutenberg implementation, including preview_link on the autosaves controller was sufficient for our needs.

Note: See TracTickets for help on using tickets.