Skip to content

Commit

Permalink
Apple devices use different kind of apostrophe which does not work fo…
Browse files Browse the repository at this point in the history
…r search - FIXED
  • Loading branch information
Stiofan committed Jul 11, 2018
1 parent 8579d5d commit b468295
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions change_log.txt
@@ -1,3 +1,7 @@
v1.6.29
iframe api generation broken (by Google iframe restrictions) changed to new window popup - FIXED
Apple devices use different kind of apostrophe which does not work for search - FIXED

v1.6.28
OpenStreetMap populates wrong region for UK - FIXED
Check added if post info missing on details page - FIXED
Expand Down
3 changes: 2 additions & 1 deletion geodirectory-admin/admin_functions.php
Expand Up @@ -1034,7 +1034,8 @@ function geodir_admin_fields($options)
} else {
echo esc_attr($value['std']);
} ?>"/>
<a href='https://console.developers.google.com/henhouse/?pb=["hh-1","maps_backend",null,[],"https://developers.google.com",null,["static_maps_backend","street_view_image_backend","maps_embed_backend","places_backend","geocoding_backend","directions_backend","distance_matrix_backend","geolocation","elevation_backend","timezone_backend","maps_backend"],null]&TB_iframe=true&width=600&height=400' class="thickbox button-primary" name="<?php _e('Generate API Key - ( MUST be logged in to your Google account )','geodirectory');?>" ><?php _e('Generate API Key','geodirectory');?></a>
<?php $gm_api_url = 'https://console.developers.google.com/henhouse/?pb=["hh-1","maps_backend",null,[],"https://developers.google.com",null,["static_maps_backend","street_view_image_backend","maps_embed_backend","places_backend","geocoding_backend","directions_backend","distance_matrix_backend","geolocation","elevation_backend","timezone_backend","maps_backend"],null]';?>
<a id="gd-api-key" onclick='window.open("<?php echo wp_slash($gm_api_url);?>", "newwindow", "width=600, height=400"); return false;' href='<?php echo $gm_api_url;?>' class="button-primary" name="<?php _e('Generate API Key - ( MUST be logged in to your Google account )','geodirectory');?>" ><?php _e('Generate API Key','geodirectory');?></a>
<span class="description"><?php echo $value['desc']; ?></span></td>
</tr><?php
break;
Expand Down
4 changes: 3 additions & 1 deletion geodirectory-functions/custom_functions.php
Expand Up @@ -2389,7 +2389,9 @@ function geodir_search_form_search_input() {
?>
<input class="search_text" name="s"
value="<?php if ( isset( $_REQUEST['s'] ) && trim( $_REQUEST['s'] ) != '' ) {
echo esc_attr( stripslashes_deep( $_REQUEST['s'] ) );
$search_term = esc_attr( stripslashes_deep( $_REQUEST['s'] ) );
$search_term = str_replace(array("%E2%80%99",""),array("%27","'"),$search_term);
echo $search_term;
} else {
echo $default_search_for_text;
} ?>" type="text"
Expand Down
1 change: 1 addition & 0 deletions geodirectory-functions/general_functions.php
Expand Up @@ -4843,6 +4843,7 @@ function geodir_filter_title_variables( $title, $gd_page, $sep = '' ) {
$search_term = '';
if ( isset( $_REQUEST['s'] ) ) {
$search_term = esc_attr( $_REQUEST['s'] );
$search_term = str_replace(array("%E2%80%99",""),array("%27","'"),$search_term);
}
$title = str_replace( "%%search_term%%", $search_term, $title );
}
Expand Down
1 change: 1 addition & 0 deletions geodirectory-functions/listing_filters.php
Expand Up @@ -116,6 +116,7 @@ function set_listing_request($query )

if (isset($_REQUEST['s'])) {
$s = trim(esc_attr(wp_strip_all_tags($_REQUEST['s'])));
$s = str_replace(array("%E2%80%99",""),array("%27","'"),$s);
}

if ($snear == 'NEAR ME') {
Expand Down

0 comments on commit b468295

Please sign in to comment.