Quantcast
Viewing all articles
Browse latest Browse all 31580

peterhebert on "[Plugin: Widget CSS Classes] PHP error: Trying to get property of non-object"

When I have no published posts, the plugin produces the following PHP error in all widget areas:

Notice: Trying to get property of non-object in /wp-includes/post-template.php on line 29

Upon publishing a post, the notices go away. When I deactivate the plugin, no errors. I deactivated all other plugins, narrowed it down to this one. Same thing happens across multiple themes (tested with twenty fourteen and my custom theme).

Having no posts is not a common scenario, of course, but the bug should be fixed nonetheless.

http://wordpress.org/plugins/widget-css-classes/


Viewing all articles
Browse latest Browse all 31580

Trending Articles