Support » Plugin: Email Blaster Newsletter Signup Form » Notice: The called constructor method for WP_Widget in emailblaster is deprecate

  • Resolved Andi Lee Davis

    (@andi-lee-davis)


    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://wordpress.org/plugins/email-blaster-newsletter-signup-form/

Viewing 1 replies (of 1 total)
  • Actually that would just amend the constructor but the error is still being output. Do you have a solution?

    Thanks

    Andi

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.