diff --git a/cal.com.php b/cal.com.php index a4de793..a6bc25e 100755 --- a/cal.com.php +++ b/cal.com.php @@ -5,7 +5,7 @@ * Description: Simplest and easiest way to embed Cal.com in WordPress. * Author: Cal.com, Simpma * Author URI: https://cal.com/ - * Version: 2.0.0 + * Version: 2.1.0 * License: GPLv3 or later */ diff --git a/changelog.txt b/changelog.txt index dc075b6..94969db 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,7 +4,11 @@ Plugin Page: https://wordpress.org/plugins/cal-com/ == Changelog == -= 2.0.0 - 23-03-2026 = += 2.1.0 - 26-03-2026 = + +- Script enqueue handle mismatch fix + += 2.0.0 - 21-03-2026 = - Added widget customizer to admin page - Introduced new shortcode [cal_custom] diff --git a/inc/class.cal.com.php b/inc/class.cal.com.php index bfcd5b0..7661bee 100755 --- a/inc/class.cal.com.php +++ b/inc/class.cal.com.php @@ -38,7 +38,7 @@ public function register_scripts() : false; wp_register_script( - 'calcom-loader', + 'calcom-loader-js', CALCOM_ASSETS_URL . 'js/cal-loader.min.js', [], $ver, @@ -48,7 +48,7 @@ public function register_scripts() wp_register_script( 'calcom-embed-js', CALCOM_ASSETS_URL . 'js/embed.min.js', - ['calcom-loader'], + ['calcom-loader-js'], $ver, true ); diff --git a/inc/class.embed.php b/inc/class.embed.php index abc6ea6..c5ab15c 100755 --- a/inc/class.embed.php +++ b/inc/class.embed.php @@ -40,7 +40,7 @@ protected function embed($atts) $widget_data = $this->prepare_widget_data($atts); - if (!empty($widget_data)) { + if (!empty($widget_data) && $widget_data !== 'null') { wp_add_inline_script( 'calcom-embed-js', 'window.calcomData = ' . $widget_data . ';', diff --git a/readme.txt b/readme.txt index c0d0582..f838a65 100755 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: calcom, turn2honey Tags: appointment, appointment booking, appointment scheduling, booking calendar, calcom Requires at least: 4.6 Tested up to: 6.9 -Stable tag: 2.0.0 +Stable tag: 2.1.0 Requires PHP: 7.4 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.en.html @@ -21,6 +21,8 @@ This plugin enables you to: - Pre-fill user information and add UTM tracking parameters. - Use the new admin widget customizer for real-time previews. +[Watch Demo](https://simpma.com/plugins/cal-com/) + == Installation == 1. Install via the WordPress dashboard or upload the ZIP. @@ -74,7 +76,12 @@ This plugin relies on [Cal.com embed](https://cal.com). See their [Privacy Polic == Changelog == -= 2.0.0 - 23-03-2026 = += 2.1.0 - 26-03-2026 = + +- Script enqueue handle mismatch fix + + += 2.0.0 - 21-03-2026 = - Added widget customizer to admin page - Introduced new shortcode [cal_custom]