Notice: The Called Constructor Method For WP_Widget Is Deprecated Since Version 4.3.0! Use __construct()

If you enable debug mode on WordPress you may see this message. The old constructor looks in a Layers Widget like this

$this->WP_Widget( 'wppp', __( 'Popular Posts', 'wordpresscom-popular-posts' ), $widget_ops, $control_ops );

We need to update the widgets with the following

parent::__construct( 'wppp', __( 'Popular Posts', 'wordpresscom-popular-posts' ), $widget_ops, $control_ops );

Related Post

Leave a Reply