Deprecation Warning Work Around
-
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 ProThank you for the plugin its really useful.
- The topic ‘Deprecation Warning Work Around’ is closed to new replies.