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

WordPress Trac noreply at wordpress.org
Fri May 1 08:36:56 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 dev-feedback needs-        |     Focuses:  rest-api
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by Jules Colle):

 If someone would like to test the patch, please verify the following:

 - With permalinks enabled
   - a scheduled post should always be presented to the admin with a
 permalink. So clicking "View post" or the link presented under "What's
 next" (or any other place in the admin area) should show and take you to
 the permalink version of the post.
   - Visiting a scheduled post with the guid (`example.com/?p=123`), should
 NOT redirect the user to the permalink version. (This is to prevent brute
 force guessing (#30910))
   - Once the scheduled post is published, visiting the guid, should
 automatically redirect the user to the permalink version of the post.
 - Without permalinks enabled, everything should keep working as it was
 prior to this patch.

 I can confirm all of this works as expected from my own tests.

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


More information about the wp-trac mailing list