[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
Fri Nov 30 14:03:48 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:  low              |   Milestone:  3.5
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |
-----------------------------+---------------------
Changes (by ryan):

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


Comment:

 In [changeset:"22950"]:
 {{{
 #!CommitTicketReference repository="" revision="22950"
 Add a create_posts check to _wp_translate_postdata(). Move the edit_post
 check to the top of the function.

 Props nacin
 fixes #22417
 }}}

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


More information about the wp-trac mailing list