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

WordPress Trac noreply at wordpress.org
Fri Apr 3 19:38:30 UTC 2020


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

 * owner:  (none) => kadamwhite
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47547" 47547]:
 {{{
 #!CommitTicketReference repository="" revision="47547"
 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.

 Props sorenbronsted, yohannp, TimothyBlynJacobs.
 Fixes #49645.
 }}}

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


More information about the wp-trac mailing list