Make WordPress Core


Ignore:
Timestamp:
05/14/2004 09:59:51 PM (22 years ago)
Author:
rboren
Message:

Output default Geo headers if the query has returns one post but the lat and lon are empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1279 r1283  
    847847    global $posts;
    848848
    849     if ($posts && 1 === count($posts)) {
     849    if ($posts && 1 === count($posts) && ! empty($posts[0]->post_lat)) {
    850850        // there's only one result  see if it has a geo code
    851851        $row = $posts[0];
Note: See TracChangeset for help on using the changeset viewer.