From 07a395f685ea028a01d9be25a34e1b3f0db73a7f Mon Sep 17 00:00:00 2001 From: saxmatt Date: Wed, 28 Apr 2004 04:42:37 +0000 Subject: [PATCH] Changes from Carthik. git-svn-id: http://svn.automattic.com/wordpress/trunk@1196 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 "