From 1555ee9cd6e1ad0b50da974a65b45911823f4591 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 28 Apr 2004 04:42:37 +0000 Subject: [PATCH] Changes from Carthik. git-svn-id: https://develop.svn.wordpress.org/trunk@1196 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-geo.php | 33 ++++++++++++++++++++------ 1 file changed, 26 insertions(+), 7 deletions(-) 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 "