Skip to content

Commit

Permalink
Merge pull request #2740 from kprajapatii/master
Browse files Browse the repository at this point in the history
Multiple maps on the page shows JavaScript error - FIXED
  • Loading branch information
kprajapatii authored Dec 2, 2024
2 parents 6b88f2a + 6a9607f commit 8cdbbd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/general-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3209,8 +3209,9 @@ function geodir_widget_enqueue_scripts( $args, $widget = array(), $extra = array

if ( ! wp_script_is( 'geodir-map-widget', 'enqueued' ) ) {
GeoDir_Frontend_Scripts::enqueue_script( 'geodir-map-widget' );
wp_localize_script( 'geodir-map-widget', $args['map_canvas'], $args );
}

wp_localize_script( 'geodir-map-widget', $args['map_canvas'], $args );
}
} else if ( $widget->id_base == 'gd_search' || $widget->id_base == 'gd_location_switcher' ) {
// GD > Search, GD > Location Switcher
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.91 - TBD =
* Multiple maps on the page shows JavaScript error - FIXED

= GeoDirectory v2.3.90 - 2024-11-30 =
* Load scripts on call feature can break block theme add listing page map - FIXED

Expand Down

0 comments on commit 8cdbbd6

Please sign in to comment.