[wp-trac] [WordPress Trac] #13905: No sanity check in map_meta_cap caps throws PHP notices

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 10 16:53:08 UTC 2010


#13905: No sanity check in map_meta_cap caps throws PHP notices
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  filosofo 
     Type:  defect (bug)  |      Status:  accepted 
 Priority:  normal        |   Milestone:  3.1      
Component:  Post Types    |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by nacin):

 Patch needs refresh again after more work in #14122.

 I'm not sure some sanity checks are needed here, such as whether a post
 type object exists after we've already established that the post exists.
 They seem fine, though -- but can't we just `break` instead of re-
 indenting everything for most checks?

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


More information about the wp-trac mailing list