WordPress.org

Make WordPress Core

Changeset 35105


Ignore:
Timestamp:
10/13/2015 01:48:32 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Replace get_bloginfo( 'wpurl' ) with site_url() in rsd_link().

Ensure the correct scheme is used for the application/rsd+xml link URL.

Props johnbillion.
See #34280.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r35090 r35105  
    24462446 */
    24472447function rsd_link() {
    2448     echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";
     2448    echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . esc_url( site_url( 'xmlrpc.php?rsd', 'rpc' ) ) . '" />' . "\n";
    24492449}
    24502450
Note: See TracChangeset for help on using the changeset viewer.