[wp-trac] [WordPress Trac] #12498: wp_write_post() isn't custom post type friendly

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 17 12:42:01 UTC 2010


#12498: wp_write_post() isn't custom post type friendly
--------------------------+-------------------------------------------------
 Reporter:  ceenz         |       Owner:                  
     Type:  defect (bug)  |      Status:  new             
 Priority:  normal        |   Milestone:  3.0             
Component:  Post Types    |     Version:  3.0             
 Severity:  normal        |    Keywords:  has-patch commit
--------------------------+-------------------------------------------------

Comment(by dd32):

 This applies to a lot more than just wp_write_post.

 I just committed something very similar which fixes this ticket, [13729]

 admin-ajax.php could do with a lot of checks fixed there too.

 I was thinking this could be handled better at the map_meta_cap level, but
 due to the ID's not being passed, I think its best that core just updates
 it to get the post object, and take it from there instead.

 In short, anything which turns up in a grep(ignoring whitespace) for
 "current_user_can('edit_post" needs to be changed..

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


More information about the wp-trac mailing list