WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/30/2012 01:33:00 PM (9 years ago)
Author:
ryan
Message:

Use set_url_scheme(). Props johnbillion, MarcusPope. see #19037 #20759

File:
1 edited

Legend:

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

    r21652 r21664  
    489489function self_link() {
    490490    $host = @parse_url(home_url());
    491     $host = $host['host'];
    492     echo esc_url(
    493         ( is_ssl() ? 'https' : 'http' ) . '://'
    494         . $host
    495         . stripslashes($_SERVER['REQUEST_URI'])
    496         );
     491    echo esc_url( set_url_scheme( 'http://' . $host['host'] . stripslashes($_SERVER['REQUEST_URI']) ) );
    497492}
    498493
Note: See TracChangeset for help on using the changeset viewer.