Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mythemes

    (@mythemes)

    just replace the constructor with this:

    function __construct()
    {
        parent::__construct( 'qTranslateXWidget', __('qTranslate Language Chooser', 'qtranslate'), array(
            'classname'     => 'qtranxs_widget',
            'description'   => __('Allows your visitors to choose a Language.', 'qtranslate')
        ));
    }
    

    Hi, I have this exact same issue. Where would I change this?

    Plugin Author Gunu

    (@grafcom)

    @reddo

    for now change this:

    function qTranslateXWidget() {
    		$widget_ops = array('classname' => 'qtranxs_widget', 'description' => __('Allows your visitors to choose a Language.', 'qtranslate') );
    		$this->WP_Widget('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);
    	}

    to this:

    function qTranslateXWidget() {
    		$widget_ops = array('classname' => 'qtranxs_widget', 'description' => __('Allows your visitors to choose a Language.', 'qtranslate') );
    		parent::__construct('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);
    	}

    in the file: qtranslate_widget.php

    Thanks, I’ll try this.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WP_Widget is deprecated since version 4.3.0!’ is closed to new replies.