[wp-trac] [WordPress Trac] #47443: REST-API prevents users with edit_published_posts capability updating published posts

WordPress Trac noreply at wordpress.org
Mon Sep 27 14:51:50 UTC 2021


#47443: REST-API prevents users with edit_published_posts capability updating
published posts
--------------------------------------+-----------------------------
 Reporter:  derweili                  |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  REST API                  |     Version:  5.2.1
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------------

Comment (by derweili):

 @TimothyBlynJacobs I created a new PR on GitHub addressing this ticket.

 As requested in the previous PRs, I created unit tests and additionally
 tested the behavior manually with the Block Editor.

 I also changed the behavior of the action links so they check for the
 current `post_id`. This was missing in the previous PR. I also created a
 Unit Test for this action link behavior.

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


More information about the wp-trac mailing list