WP 4.3 Compatibility
-
This plugin needs to be updated to be fully compatible with WP 4.3.
When active, the plugin causes warnings due to the way it
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead. in /home/tim/public_html/brain-trainer/wp-includes/functions.php on line 3457
The way you are calling WP_Widget is no longer current. I believe it should be something like this:
diff --git a/wp-content/plugins/email-subscription/EmailSubscriptionWidget.php b/wp-content/plugins/email-subscription/Email index c2b6ac9..7cee937 100644 --- a/wp-content/plugins/email-subscription/EmailSubscriptionWidget.php +++ b/wp-content/plugins/email-subscription/EmailSubscriptionWidget.php @@ -23,7 +23,7 @@ class EmailSubscriptionWidget extends WP_Widget { 'classname' => 'EmailSubscriptionWidget', 'description' => __('Displays subpages for the current page.','email-subscription') ); - $this->WP_Widget('EmailSubscriptionWidget', 'Email Subscription Widget', $options); + parent::__construct('EmailSubscriptionWidget', 'Email Subscription Widget', $options); add_filter( 'plugin_action_links', array(&$this, 'plugin_action_links'), 10, 2 ); }
Thanks!
- The topic ‘WP 4.3 Compatibility’ is closed to new replies.