Viewing 2 replies - 1 through 2 (of 2 total)
  • Actually, the entire constructor should be changed from:

    function Ebs_Custom_Widget() {
            $widget_ops = array('classname' => 'ebs_custom_widget', 'description' => __('EBS widget to show EBS/other shortcodes in sidebar.','ebs'));
            $control_ops = array('id_base' => 'ebsp-widget');
            $this->WP_Widget('ebsp-widget', __('EBS Shortcode Compiler','ebs'), $widget_ops, $control_ops);
    }

    To:

    function __construct() {
            $widget_ops = array('classname' => 'ebs_custom_widget', 'description' => __('EBS widget to show EBS/other shortcodes in sidebar.','ebs'));
            $control_ops = array('id_base' => 'ebsp-widget');
            parent::__construct('ebsp-widget', __('EBS Shortcode Compiler','ebs'), $widget_ops, $control_ops);
    }

    Plugin Author osCitas Themes

    (@oscitas)

    Hi,

    Thanks for the patch, we have updated the plugin.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice: The Called Constructor Method For WP_Widget Is Deprecated…’ is closed to new replies.