Changeset 9770

Show
Ignore:
Timestamp:
11/18/08 23:07:05 (2 months ago)
Author:
ryan
Message:

Use home to determine self link host

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.6/wp-includes/feed.php

    r9754 r9770  
    496496 */ 
    497497function self_link() { 
     498    $host = @parse_url(get_option('home')); 
     499    $host = $host['host']; 
    498500    echo clean_url(  
    499501        'http' 
    500502        . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://' 
    501         . $_SERVER['HTTP_HOST'] 
     503        . $host 
    502504        . stripslashes($_SERVER['REQUEST_URI']) 
    503505        );