diff --git a/wp-includes/template-functions-geo.php b/wp-includes/template-functions-geo.php index aa799b0679..1316de26fb 100644 --- a/wp-includes/template-functions-geo.php +++ b/wp-includes/template-functions-geo.php @@ -1,11 +1,12 @@ post_lat != '') { - return $post->post_lat; + return trim($post->post_lat); } else if(get_settings('use_default_geourl')) { - return get_settings('default_geourl_lat'); + return trim(get_settings('default_geourl_lat')); } return ''; @@ -15,9 +16,9 @@ function get_Lon() { global $post; if ($post->post_lon != '') { - return $post->post_lon; + return trim($post->post_lon); } else if(get_settings('use_default_geourl')) { - return get_settings('default_geourl_lon'); + return trim(get_settings('default_geourl_lon')); } return ''; @@ -49,7 +50,7 @@ function print_PopUpScript() { echo "