[wp-trac] [WordPress Trac] #49871: REST API post link should be permalink for scheduled posts

WordPress Trac noreply at wordpress.org
Thu Apr 23 13:05:09 UTC 2020


#49871: REST API post link should be permalink for scheduled posts
-------------------------+------------------------------
 Reporter:  Jules Colle  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Permalinks   |     Version:  4.7
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  rest-api
-------------------------+------------------------------

Comment (by Jules Colle):

 Patch 49871-2.diff makes sure the effects of #30910 do no go lost.

 Scheduled posts will still show the permalink instead of the guid
 (49871.diff), but requesting a scheduled posts with the guid (i.e.
 https://bdwm.be/?p=1654) will no longer auto-redirect to the permalink.

 I tested this on my local dev server, and also on a live website:
 https://bdwm.be/?p=1654 now no longer automatically redirects to
 https://bdwm.be/this-is-the-far-away-future/

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


More information about the wp-trac mailing list