Changeset 1203 for trunk/wp-includes/functions.php
- Timestamp:
- 04/28/2004 07:27:03 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r1190 r1203 225 225 global $wpdb, $tableposts; 226 226 227 $siteurl = get_settings(' siteurl');227 $siteurl = get_settings('home'); 228 228 // Take a link like 'http://example.com/blog/something' 229 229 // and extract just the '/something': … … 311 311 } 312 312 313 if ('home' == $setting && '' == $settings->home) return $settings->siteurl; 314 313 315 if (!isset($settings->$setting)) { 314 316 return false; … … 326 328 // never underestimate the ingenuity of the fools :)" 327 329 if ('siteurl' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value); 330 if ('home' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value); 331 328 332 $all_options->{$option->option_name} = $option->option_value; 329 333 } … … 532 536 $f = new xmlrpcmsg('weblogUpdates.ping', 533 537 array(new xmlrpcval(get_settings('blogname'), 'string'), 534 new xmlrpcval(get_settings(' siteurl') ,'string')));538 new xmlrpcval(get_settings('home') ,'string'))); 535 539 $c = new xmlrpc_client($path, $server, 80); 536 540 $r = $c->send($f); … … 637 641 $link_text = $matches[4][$i]; 638 642 $content = str_replace($link_match, $link_text.' '.$link_number, $content); 639 $link_url = (strtolower(substr($link_url,0,7)) != 'http://') ? get_settings(' siteurl') . $link_url : $link_url;643 $link_url = (strtolower(substr($link_url,0,7)) != 'http://') ? get_settings('home') . $link_url : $link_url; 640 644 $links_summary .= "\n".$link_number.' '.$link_url; 641 645 } … … 918 922 function pingGeoURL($blog_ID) { 919 923 920 $ourUrl = get_settings(' siteurl') ."/index.php?p=".$blog_ID;924 $ourUrl = get_settings('home') ."/index.php?p=".$blog_ID; 921 925 $host="geourl.org"; 922 926 $path="/ping/?p=".$ourUrl;
Note: See TracChangeset
for help on using the changeset viewer.