diff --git a/change-log.txt b/change-log.txt index 5c4617a..20379f9 100644 --- a/change-log.txt +++ b/change-log.txt @@ -1,3 +1,6 @@ += 2.0.2 = +* Elementor Pro will cause fatal error if old style register_widget is calles - FIXED + = 2.0.1 = * Added missing static functions to main class for backwards comparability - FIXED diff --git a/composer.json b/composer.json index 3e8f1d2..344cad5 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "ayecode/wp-super-duper", - "version": "2.0.1", + "version": "2.0.2", "type": "library", "description": "Lets you create a widget, block and shortcode all from the one file .", "keywords": ["WordPress","super duper","wp"], diff --git a/wp-super-duper.php b/wp-super-duper.php index 8f4f4cc..6615e03 100755 --- a/wp-super-duper.php +++ b/wp-super-duper.php @@ -23,7 +23,7 @@ */ abstract class WP_Super_Duper { - public $version = "2.0.1"; + public $version = "2.0.2"; public $font_awesome_icon_version = "5.11.2"; public $block_code; public $options; @@ -749,6 +749,13 @@ public static function load_widgets_setting_html() { public function _register(){ // backwards compatibility } + + /** + * Prevents elementor errors if called the SDv1 way. + */ + public function _set(){ + // backwards compatibility for elementor pro + } /** * Output the version in the admin header.