diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index 8e96d544be..0e8c78d0aa 100644
--- a/wp-includes/functions.php
+++ b/wp-includes/functions.php
@@ -834,26 +834,28 @@ include_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
function doGeoUrlHeader($post_list = '') {
global $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;
- $lon = $row->post_lon;
- $title = $row->post_title;
- if(($lon != null) && ($lat != null) ) {
- echo "\n";
- echo "\n";
- echo "\n";
- return;
- }
- } else {
- if(get_settings('use_default_geourl')) {
- // send the default here
- echo "\n";
- echo "\n";
- echo "\n";
- }
- }
+ if (get_settings('use_geo_positions')) {
+ 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;
+ $lon = $row->post_lon;
+ $title = $row->post_title;
+ if(($lon != null) && ($lat != null) ) {
+ echo "\n";
+ echo "\n";
+ echo "\n";
+ return;
+ }
+ } else {
+ if(get_settings('use_default_geourl')) {
+ // send the default here
+ echo "\n";
+ echo "\n";
+ echo "\n";
+ }
+ }
+ }
}
function getRemoteFile($host,$path) {