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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35105 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-10-13 01:48:32 +00:00
parent 72c81e01d4
commit c0c0305749
1 changed files with 1 additions and 1 deletions

View File

@ -2445,7 +2445,7 @@ function feed_links_extra( $args = array() ) {
* @since 2.0.0
*/
function rsd_link() {
echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";
echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . esc_url( site_url( 'xmlrpc.php?rsd', 'rpc' ) ) . '" />' . "\n";
}
/**