• Resolved spottedpaint

    (@spottedpaint)


    Hi,

    We were using your plugin apparently it did all things our designer wanted she was really pleased.
    The only thing was it showed a deprecation warning
    Deprecated: _register_controls is deprecated since version 3.1.0! Use Elementor\Controls_Stack::register_controls() instead. in /wwwroot/wp-includes/functions.php on line 5323

    I worked around that by changing the name of the method and adding a new one that seems to match the new naming

    public function register_controls(){
    	return $this->x_register_controls();
    }
    // Adding the controls fields for the Item Lists Element
    protected function x_register_controls() {

    in the file widgets/item-lists-widget.php

    This is probably unnecessary I could probably just remove the _at the start of the _register_controls function name but I wanted it to be clear it was temp fix when looking at the code, for when the plugin is next updated.

    This is on version 1.2 of the plugin
    Version 3.6.1 of Elementor
    Version 3.6.4 of Elementor Pro

    Thank you for the plugin its really useful.

Viewing 1 replies (of 1 total)
  • Plugin Author Techeshta

    (@techeshta)

    Hi @spottedpaint,

    We have fixed the deprecated error in the new version of the plugin.
    Please update our plugin copy to the latest one from WordPress Dashboard or update the notification.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Deprecation Warning Work Around’ is closed to new replies.