Skip to content

Commit

Permalink
Location me page shows wrong results on map when map cache enabled - …
Browse files Browse the repository at this point in the history
…FIXED
  • Loading branch information
kprajapatii committed Oct 12, 2018
1 parent dc69afd commit 3c41d67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions change_log.txt
Expand Up @@ -8,6 +8,7 @@ Deleted tag still displayed on the listing detail page - FIXED
Use of getenv('REMOTE_ADDR') with PHP v7.2.1 results in internal server error - FIXED
Issue with listing slug WPML translation - FIXED
Listing shortcode shows posts from all categories if category has no post - FIXED
Location me page shows wrong results on map when map cache enabled - FIXED

v1.6.30
Yoast v8.x shows error on backend edit listing page - FIXED
Expand Down
4 changes: 4 additions & 0 deletions geodirectory-functions/map-functions/get_markers.php
Expand Up @@ -42,6 +42,8 @@ function geodir_get_map_cache($cache){
$url_params[] = isset($_REQUEST['gd_region']) ? $_REQUEST['gd_region'] : '';
$url_params[] = isset($_REQUEST['gd_city']) ? $_REQUEST['gd_city'] : '';
$url_params[] = isset($_REQUEST['gd_neighbourhood']) ? $_REQUEST['gd_neighbourhood'] : '';
$url_params[] = isset($_REQUEST['my_lat']) ? $_REQUEST['my_lat'] : '';
$url_params[] = isset($_REQUEST['my_lon']) ? $_REQUEST['my_lon'] : '';

$file_name = sanitize_file_name( md5( implode("-",$url_params) ) );

Expand Down Expand Up @@ -107,6 +109,8 @@ function geodir_save_map_cache($map_json){
$url_params[] = isset($_REQUEST['gd_region']) ? $_REQUEST['gd_region'] : '';
$url_params[] = isset($_REQUEST['gd_city']) ? $_REQUEST['gd_city'] : '';
$url_params[] = isset($_REQUEST['gd_neighbourhood']) ? $_REQUEST['gd_neighbourhood'] : '';
$url_params[] = isset($_REQUEST['my_lat']) ? $_REQUEST['my_lat'] : '';
$url_params[] = isset($_REQUEST['my_lon']) ? $_REQUEST['my_lon'] : '';

$file_name = sanitize_file_name( md5( implode("-",$url_params) ) );

Expand Down

0 comments on commit 3c41d67

Please sign in to comment.