[wp-trac] [WordPress Trac] #49645: get_item function broken in rest-api

WordPress Trac noreply at wordpress.org
Thu Apr 9 22:50:40 UTC 2020


#49645: get_item function broken in rest-api
-------------------------------------------------+-------------------------
 Reporter:  yohannp                              |       Owner:  kadamwhite
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.4.1
Component:  REST API                             |     Version:  5.3
 Severity:  major                                |  Resolution:  fixed
 Keywords:  good-first-bug has-unit-tests has-   |     Focuses:
  patch fixed-major                              |
-------------------------------------------------+-------------------------
Changes (by whyisjake):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47562" 47562]:
 {{{
 #!CommitTicketReference repository="" revision="47562"
 REST API: Fix revisions controller get_item permission check.
 r45812 incorrectly introduced a delete_post permissions check into the
 get_item method, breaking some plugins which requested revisions when
 generating previews.

 Bring this commit back to the 5.4 branch.

 Props sorenbronsted, yohannp, TimothyBlynJacobs.

 Fixes #49645.
 }}}

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


More information about the wp-trac mailing list