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
This commit is contained in:
parent
bb6c99b7ae
commit
53a668610d
|
@ -846,7 +846,7 @@ include_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
|
||||||
function doGeoUrlHeader($post_list = '') {
|
function doGeoUrlHeader($post_list = '') {
|
||||||
global $posts;
|
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
|
// there's only one result see if it has a geo code
|
||||||
$row = $posts[0];
|
$row = $posts[0];
|
||||||
$lat = $row->post_lat;
|
$lat = $row->post_lat;
|
||||||
|
|
Loading…
Reference in New Issue