Make WordPress Core

Changeset 9769


Ignore:
Timestamp:
11/18/2008 11:04:42 PM (15 years ago)
Author:
ryan
Message:

Use home to determine self link host

File:
1 edited

Legend:

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

    r9753 r9769  
    499499 */
    500500function self_link() {
     501    $host = @parse_url(get_option('home'));
     502    $host = $host['host'];
    501503    echo clean_url(
    502504        'http'
    503505        . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
    504         . $_SERVER['HTTP_HOST']
     506        . $host
    505507        . stripslashes($_SERVER['REQUEST_URI'])
    506508        );
Note: See TracChangeset for help on using the changeset viewer.