Make WordPress Core

Changeset 9770


Ignore:
Timestamp:
11/18/2008 11:07:05 PM (18 years ago)
Author:
ryan
Message:

Use home to determine self link host

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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                );
Note: See TracChangeset for help on using the changeset viewer.