[wp-trac] [WordPress Trac] #16651: Warnings on dashboard: Notice: Trying to get property of non-object in wp-includes/capabilities.php

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 1 09:24:08 UTC 2012


#16651: Warnings on dashboard: Notice: Trying to get property of non-object in wp-
includes/capabilities.php
------------------------------+-----------------------
 Reporter:  grandslambert     |       Owner:
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:
Component:  Warnings/Notices  |     Version:  3.0
 Severity:  normal            |  Resolution:
 Keywords:                    |
------------------------------+-----------------------

Comment (by scribu):

 I don't think we should default to 'post' if the CPT is null.

 IMO, the cap check should fail, unless the user has 'moderate_comments'.

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


More information about the wp-trac mailing list