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

WordPress Trac noreply at wordpress.org
Fri Apr 10 02:10:50 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                              |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 > 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.

 @whyisjake Minor nitpick: it's not quite clear that "this commit" refers
 to [47547] and not to [45812], which is mentioned as incorrect and
 breaking plugins.

 It would be better to use the format recommended in the
 [https://make.wordpress.org/core/handbook/best-practices/backporting-
 commits/ Backporting Commits] handbook article in the future:
 > Props sorenbronsted, yohannp, TimothyBlynJacobs.
 > Merges [47547] to the 5.4 branch.
 > Fixes #49645.

 Thanks :)

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


More information about the wp-trac mailing list