WP Sentry Deprecated function defined called class __construct
-
Error after installation
Deprecated: The called constructor method for WP_Widget in Sentry_Widget_Recent_Comments is deprecated since version 4.3.0! Use __construct() instead. in path-to-server/public_html/domainorg/wp-includes/functions.php on line 4870
Identical solution for another plugins referred and reported with the https://stackoverflow.com/questions/6127559/wordpress-plugin-call-to-undefined-function-wp-get-current-user but we did not find a predefined construct in /wp-sentry/sentry-widgets.php
But in the above snippets we did not find the class defining the widget constructor, instead having following class
if (class_exists(‘WP_Widget’)) { class Sentry_Widget_Pages extends WP_Widget { function Sentry_Widget_Pages() { $widget_ops = array(‘classname’ => ‘widget_pages’, ‘description’ => __( ‘Your blog’s WordPress Pages’) ); $this->WP_Widget(‘pages’, __(‘Pages’), $widget_ops); }
Noticed that the class constructor is defined in the code
Kind regards
- The topic ‘WP Sentry Deprecated function defined called class __construct’ is closed to new replies.