If you turn on WP_DEBUG and find this error:
Notice: The called constructor method for WP_Widget in anthemes_postcat is deprecated since version 4.3.0! Use __construct() instead. in /nas/content/live/lightlifemag/wp-includes/functions.php on line 4503
Change this:
class anthemes_postcat extends WP_Widget {
function WP_Widget() { $widget_ops = array('description' => 'Posts by Categories' ); parent::WP_Widget(false, $name = 'Custom: Posts by Categories',$widget_ops); }
to this:
class anthemes_postcat extends WP_Widget {
function __construct() { $widget_ops = array('description' => 'Posts by Categories' ); parent::__construct(false, $name = 'Custom: Posts by Categories',$widget_ops); }
Warning: Please note that if your plugin or theme is by a third-party who has updates, any updates will remove your fixes. Please notify the plugin author or theme author rather than making these changes yourself.
See also:
- Fix PHP error “Methods with same name as their class will not be constructors”
- Fix create_function() deprecated PHP function in WordPress
- Fix each() deprecated PHP function in WordPress
[…] Fix PHP error “called constructor method for WP_Widget… deprecated” […]