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
herrvigg opened this issue Jun 22, 2018 · 1 comment
Closed

obsolete widget constructor #250

herrvigg opened this issue Jun 22, 2018 · 1 comment
Labels
bug Something isn't working, reproducible legacy issue Legacy issue imported from original repo

Comments

@herrvigg
Copy link
Collaborator

Issue by ursribi
Tuesday Sep 08, 2015 at 06:13 GMT
Originally opened as qTranslate-Team/qtranslate-x#250


/* 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);
}

@herrvigg herrvigg added bug Something isn't working, reproducible legacy issue Legacy issue imported from original repo labels Jun 22, 2018
@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Wednesday Sep 09, 2015 at 05:02 GMT


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
bug Something isn't working, reproducible legacy issue Legacy issue imported from original repo
Projects
None yet
Development

No branches or pull requests

1 participant