[wp-trac] [WordPress Trac] #26366: wp-includes/capabilities.php notices...

WordPress Trac noreply at wordpress.org
Mon Dec 2 19:43:45 UTC 2013


#26366: wp-includes/capabilities.php notices...
-----------------------------+-----------------------------
 Reporter:  carldanley       |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Role/Capability  |    Version:  trunk
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 Every time I fire up my dashboard, I receive notices for the WordPress
 activity dashboard widget. See: http://d.pr/i/3wiz. Granted, I can turn
 off notices in PHP but for my dev environment, I like to keep them on so I
 can see things like this.

 `get_post_type_object()` can return `null`. There aren't any checks for
 that null object which is a bad thing. I'm hoping this patch will spark
 whatever is needed to prevent these notices from happening. See my diff
 for the solution.

 I *think* the way this is able to be replicated is by creating a post that
 has privileges tied to a plugin but then deactivate the plugin and watch
 as the activity stream goes kaboom because those priv's aren't there
 anymore? Haven't full wrapped my head around anything because I haven't
 had time yet.

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


More information about the wp-trac mailing list