[wp-trac] [WordPress Trac] #22417: _wp_translate_postdata() should use current_user_can( $ptype->cap->edit_post, $post_id )

WordPress Trac noreply at wordpress.org
Wed Nov 21 16:34:59 UTC 2012


#22417: _wp_translate_postdata() should use current_user_can(
$ptype->cap->edit_post, $post_id )
-----------------------------+---------------------
 Reporter:  danielbachhuber  |       Owner:  westi
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  3.5
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |
-----------------------------+---------------------
Changes (by westi):

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


Comment:

 In [changeset:"22769"]:
 {{{
 #!CommitTicketReference repository="" revision="22769"
 Posting: Improve the capability checking _wp_translate_postdata() when
 updating posts.

 * Use the specific post_type's 'edit_post' cap
 * Pass the ID of the post being edited.

 Fixes #22417
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22417#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list