WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r8246 r9770  
    496496 */
    497497function self_link() {
    498     echo 'http'
    499         . ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://'
    500         . $_SERVER['HTTP_HOST']
    501         . wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1);
     498    $host = @parse_url(get_option('home'));
     499    $host = $host['host'];
     500    echo clean_url(
     501        'http'
     502        . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
     503        . $host
     504        . stripslashes($_SERVER['REQUEST_URI'])
     505        );
    502506}
    503507
Note: See TracChangeset for help on using the changeset viewer.