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

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 15 16:32:14 UTC 2010


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

Comment(by filosofo):

 It's a little hard to see in the diff, but all I'm doing is wrapping the
 object-property-dependent logic in a `if ( ! empty( $post->ID ) )` check.
 And removing that commented-out debugging cruft.

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


More information about the wp-trac mailing list