mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 10:08:27 +00:00
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 = '') {
|
||||
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…
x
Reference in New Issue
Block a user