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.
Built from https://develop.svn.wordpress.org/trunk@35105


git-svn-id: http://core.svn.wordpress.org/trunk@35070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-10-13 01:49:26 +00:00
parent 649382a7f1
commit 426944c744
2 changed files with 2 additions and 2 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";
}
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-35104';
$wp_version = '4.4-alpha-35105';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.