From 6b88f2a99e915d765b2938db90b439ac04442609 Mon Sep 17 00:00:00 2001 From: stiofan Date: Sat, 30 Nov 2024 17:56:39 +0000 Subject: [PATCH] 2.3.90 --- geodirectory.php | 4 ++-- includes/class-geodir-compatibility.php | 3 ++- includes/general-functions.php | 2 +- readme.txt | 5 ++++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/geodirectory.php b/geodirectory.php index e32b7c82..caed97c0 100644 --- a/geodirectory.php +++ b/geodirectory.php @@ -11,7 +11,7 @@ * Plugin Name: GeoDirectory * Plugin URI: https://wpgeodirectory.com/ * Description: GeoDirectory - Business Directory Plugin for WordPress. - * Version: 2.3.89 + * Version: 2.3.90 * Author: AyeCode - WP Business Directory Plugins * Author URI: https://wpgeodirectory.com * Text Domain: geodirectory @@ -34,7 +34,7 @@ final class GeoDirectory { * * @var string */ - public $version = '2.3.89'; + public $version = '2.3.90'; /** * GeoDirectory instance. diff --git a/includes/class-geodir-compatibility.php b/includes/class-geodir-compatibility.php index facf40dc..77f1d6b9 100644 --- a/includes/class-geodir-compatibility.php +++ b/includes/class-geodir-compatibility.php @@ -4305,7 +4305,8 @@ public static function block_theme_load_scripts( $options, $super_duper ) { if ( ! wp_script_is( 'geodir', 'registered' ) ) { $geodir_frontend_scripts_loaded = true; - GeoDir_Frontend_Scripts::load_scripts(); + // call scripts after the WP object is loaded so we can use page conditions + add_action('wp', array('GeoDir_Frontend_Scripts','load_scripts'), 10); } } diff --git a/includes/general-functions.php b/includes/general-functions.php index 329ea93e..0c8b71f5 100644 --- a/includes/general-functions.php +++ b/includes/general-functions.php @@ -3284,4 +3284,4 @@ function geodir_widget_enqueue_scripts( $args, $widget = array(), $extra = array } } } -} \ No newline at end of file +} diff --git a/readme.txt b/readme.txt index 60d2669d..08801abb 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://wpgeodirectory.com Tags: business directory, listings, directory plugin, classifieds, directory Requires at least: 5.0 Tested up to: 6.7 -Stable tag: 2.3.89 +Stable tag: 2.3.90 Requires PHP: 5.6 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -319,6 +319,9 @@ We don't offer free trials, but we have a 30-day money-back guarantee if you are __WARNING: GDv2 is a significant update over GDv1 and may require manual work, such as adding widgets to sidebars to recreate your current layout. As always, we recommend trying this on a staging site first. [Learn more](https://docs.wpgeodirectory.com/article/260-upgrading-from-gdv1-to-gdv2)__ += GeoDirectory v2.3.90 - 2024-11-30 = +* Load scripts on call feature can break block theme add listing page map - FIXED + = GeoDirectory v2.3.89 - 2024-11-29 = * Old version of AUI conflicts if not updated - FIXED