Changeset 1239 for trunk/wp-includes/functions.php
- Timestamp:
- 05/07/2004 11:56:33 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r1235 r1239 1 1 <?php 2 3 $curpath = dirname(__FILE__).'/';4 5 require($curpath . 'functions-formatting.php');6 2 7 3 if (!function_exists('_')) { … … 846 842 global $posts; 847 843 848 if (empty($post_list)) { 849 $post_list = $posts; 850 } 851 852 if (count($post_list) == 1) { 844 if ($posts && 1 === count($posts)) { 853 845 // there's only one result see if it has a geo code 854 $row = $post _list[0];846 $row = $posts[0]; 855 847 $lat = $row->post_lat; 856 848 $lon = $row->post_lon; … … 865 857 if(get_settings('use_default_geourl')) { 866 858 // 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"; 870 862 } 871 863 }
Note: See TracChangeset
for help on using the changeset viewer.