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

WordPress Trac noreply at wordpress.org
Fri Apr 10 19:48:40 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:  2nd-opinion  |     Focuses:  rest-api
-------------------------+------------------------------
Changes (by TimothyBlynJacobs):

 * version:  trunk => 4.7
 * component:  REST API => Permalinks


Comment:

 Thanks for the ticket @jules-colle and welcome to trac!

 I'm moving this to the Permalinks component and keeping the REST API focus
 since this looks like it'd require changes to `get_post_permalink()` which
 [https://github.com/WordPress/wordpress-
 develop/blob/d8c502e9663cf1c266aed375d4ba2e09a86a4f2d/src/wp-includes
 /link-template.php#L278 checks] for the `future` post status.

 So I'd like to hear from the Permalink maintainers before we make any
 change in the REST API. cc @SergeyBiryukov, @asif2bd.

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


More information about the wp-trac mailing list