From 75294d31874fc89dad1b622257ec353b49f0609c Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@1283 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 cc33126bb7..231101d100 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;