Make WordPress Core


Ignore:
Timestamp:
05/07/2004 11:56:33 PM (22 years ago)
Author:
saxmatt
Message:

E_ALL fixes and cleanups.

File:
1 edited

Legend:

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

    r1235 r1239  
    11<?php
    2 
    3 $curpath = dirname(__FILE__).'/';
    4 
    5 require($curpath . 'functions-formatting.php');
    62
    73if (!function_exists('_')) {
     
    846842    global $posts;
    847843
    848     if (empty($post_list)) {
    849         $post_list = $posts;
    850     }
    851 
    852     if (count($post_list) == 1) {
     844    if ($posts && 1 === count($posts)) {
    853845        // there's only one result  see if it has a geo code
    854         $row = $post_list[0];
     846        $row = $posts[0];
    855847        $lat = $row->post_lat;
    856848        $lon = $row->post_lon;
     
    865857        if(get_settings('use_default_geourl')) {
    866858            // send the default here
    867             echo "<meta name=\"ICBM\" content=\"". get_settings('default_geourl_lat') .", ". get_settings('default_geourl_lon') ."\" />\n";
    868             echo "<meta name=\"DC.title\" content=\"".convert_chars(strip_tags(get_bloginfo("name")))."\" />\n";
    869             echo "<meta name=\"geo.position\" content=\"". get_settings('default_geourl_lat') .";". get_settings('default_geourl_lon') ."\" />\n";
     859            echo "<meta name='ICBM' content=\"". get_settings('default_geourl_lat') .", ". get_settings('default_geourl_lon') ."\" />\n";
     860            echo "<meta name='DC.title' content=\"".convert_chars(strip_tags(get_bloginfo("name")))."\" />\n";
     861            echo "<meta name='geo.position' content=\"". get_settings('default_geourl_lat') .";". get_settings('default_geourl_lon') ."\" />\n";
    870862        }
    871863    }
Note: See TracChangeset for help on using the changeset viewer.