[wp-trac] [WordPress Trac] #42464: Replace `publish_posts` permission check in `wp_insert_post()`.

WordPress Trac noreply at wordpress.org
Sat Dec 9 22:50:16 UTC 2017


#42464: Replace `publish_posts` permission check in `wp_insert_post()`.
---------------------------------------------+--------------------------
 Reporter:  peterwilsoncc                    |       Owner:  johnbillion
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  5.0
Component:  Role/Capability                  |     Version:  2.7
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by johnbillion):

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


Comment:

 In [changeset:"42380"]:
 {{{
 #!CommitTicketReference repository="" revision="42380"
 Role/Capability: When checking capabilities before setting a post slug,
 ensure the correct post type capabilities are used.

 Previously, only the `publish_posts` capability was checked. Now, the
 correct meta or primitive capability for the post type is used where
 appropriate.

 Props peterwilsoncc

 Fixes #42464
 }}}

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


More information about the wp-trac mailing list