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

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 16 10:22:45 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        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------

Comment (by nacin):

 If the post doesn't exist, this patch will return no caps for
 current_user_can( 'edit_post', $nonexistent_post )..

 Should current_user_can( 'edit_post', $nonexistent_post ) still go with
 the baseline primitive cap, e.g. edit_posts?

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


More information about the wp-trac mailing list