From 53a668610de7da0758813f4cb6c6756e1e9174dc Mon Sep 17 00:00:00 2001 From: rboren Date: Fri, 14 May 2004 21:59:51 +0000 Subject: [PATCH] Output default Geo headers if the query has returns one post but the lat and lon are empty. git-svn-id: http://svn.automattic.com/wordpress/trunk@1283 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index cc33126bb..231101d10 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -846,7 +846,7 @@ include_once (ABSPATH . WPINC . '/class-xmlrpcs.php'); function doGeoUrlHeader($post_list = '') { global $posts; - if ($posts && 1 === count($posts)) { + if ($posts && 1 === count($posts) && ! empty($posts[0]->post_lat)) { // there's only one result see if it has a geo code $row = $posts[0]; $lat = $row->post_lat;