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
This commit is contained in:
parent
c33087c85a
commit
75294d3187
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user