Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obsolete widget constructor #250

Closed
ursribi opened this issue Sep 8, 2015 · 1 comment
Closed

obsolete widget constructor #250

ursribi opened this issue Sep 8, 2015 · 1 comment
Labels

Comments

@ursribi
Copy link

ursribi commented Sep 8, 2015

/* qTranslate-X Widget */

class qTranslateXWidget extends WP_Widget {

// obsolete constructor in version wp 4.3.
// function qTranslateXWidget() {

// use this function in version wp 4.3
function __construct() {
$widget_ops = array('classname' => 'qtranxs_widget', 'description' => __('Allows your visitors to choose a Language.', 'qtranslate') );
// obsolete constructor call in version wp 4.3.
// $this->WP_Widget('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);

// use this call in version wp 4.3
parent::__construct('qtranslate', __('qTranslate Language Chooser', 'qtranslate'), $widget_ops);
}

@johnclause johnclause added the bug label Sep 9, 2015
@johnclause
Copy link
Member

Fixed in new soon to be released version 3.4.5, available from GitHub: https://github.com/qTranslate-Team/qtranslate-x - thanks a lot for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants