[wp-trac] [WordPress Trac] #48764: RESTI API explicitly checks for publish_posts capability without post ID

WordPress Trac noreply at wordpress.org
Fri Nov 22 10:55:41 UTC 2019


#48764: RESTI API explicitly checks for publish_posts capability without post ID
--------------------------+------------------------------
 Reporter:  djzone        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 To summarize a bit, the `publish_posts` capability should be used for
 checking whether the user can publish posts in general, not a specific
 post. For the latter, `publish_post` should be used.

 Related: comment:2:ticket:48415

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


More information about the wp-trac mailing list