[wp-trac] [WordPress Trac] #20474: cap fixes in _wp_insert_post

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 23 22:34:42 UTC 2012


#20474: cap fixes in _wp_insert_post
--------------------------+-----------------------
 Reporter:  nprasath002   |       Owner:  ryan
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.4
Component:  XML-RPC       |     Version:  3.4
 Severity:  critical      |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by scribu):

 The magic of meta caps: `current_user_can( 'publish_post', $post_data[
 'ID' ] ) )`

 That should work with all post types, right?

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


More information about the wp-trac mailing list