Notice: The called constructor method for WP_Widget in emailblaster is deprecate
-
Hi There,
Notice: The called constructor method for WP_Widget in emailblaster is deprecated since version 4.3.0! Use __construct() instead. in /home/website/public_html/wp-includes/functions.php on line 371
Your opening constructor in emailblaster.class.php lines 17-26 needs to change from:
parent::WP_Widget( 'emailblaster', //title of the widget in the WP dashboard __('Email Blaster'), array('description'=>'Displays an Email Blaster form.', 'class'=>'emailblasterwidget') );
To the more recent way of doing this:
// Widget ID and Class Setup parent::__construct( 'emailblaster', __( 'Email Blaster', 'emailblaster' ), array( 'classname' => 'emailblasterwidget', 'description' => __( 'Displays an Email Blaster form.', 'emailblaster' ) ) );
Thanks
Andi
https://www.ads-software.com/plugins/email-blaster-newsletter-signup-form/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Notice: The called constructor method for WP_Widget in emailblaster is deprecate’ is closed to new replies.