[wp-trac] [WordPress Trac] #15511: Check for WP_Error earlier in edit_post

WordPress Trac wp-trac at lists.automattic.com
Sat Nov 20 00:34:11 UTC 2010


#15511: Check for WP_Error earlier in edit_post
--------------------------+-------------------------------------------------
 Reporter:  alexdunae     |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 When working with custom post types where I hadn't assign the edit_others
 capabilities, _wp_translate_postdata was returning WP_Error.

 edit_post checks for WP_Error, but not before assuming that the return
 value is actually array and triggering an ugly error.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15511>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list