Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, I have same issue on my website too.

    Hello,

    To resolve this error in the file ‘inc / core / widget.php it is necessary to replace the lines:

    function __construct() {
    		$widget_ops = array(
    			'classname'   => 'shortcodes-ultimate',
    			'description' => __( 'Special Shortcodes Ultimate widget', 'su' )
    		);
    		$control_ops = array(
    			'width'   => 300,
    			'height'  => 350,
    			'id_base' => 'shortcodes-ultimate'
    		);
    		$this->WP_Widget( 'shortcodes-ultimate', __( 'Shortcodes Ultimate', 'su' ), $widget_ops, $control_ops );
    	}

    by the following:

    function __construct() {
    		parent::__construct(
    			'shortcodes-ultimate', // Base ID
    			'Shortcodes Ultimate', // Widget Name
    			array(
    				'classname' => 'shortcodes-ultimate',
    				'description' =>  __( 'Special Shortcodes Ultimate widget', 'su' )
    			),
    			array(
    				'width' => 300,
    				'height' => 350
    			)
    		);
    }

    And everything works!

    greetings

    Jose

    Thread Starter Daraku

    (@daraku)

    Thanks that helped

    It worked for me too. Thank you so much for your help.

    Worked for me, too. Thanks, JoseKost!

    Thanks for the solution Jose. Hopefully Vladimir will push an update fixing this soon.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘The called constructor method for WP_Widget is deprecated’ is closed to new replies.