XML-RPC: Update RSD specification URL in XMLRPC library.
This changeset updates the RSD specification URL to avoid extra redirection. Props utsav72640. Fixes #58503. Built from https://develop.svn.wordpress.org/trunk@55901 git-svn-id: http://core.svn.wordpress.org/trunk@55413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
889bf8403a
commit
41396a44f5
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55900';
|
$wp_version = '6.3-alpha-55901';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether this is an XML-RPC Request
|
* Whether this is an XML-RPC Request.
|
||||||
*
|
*
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
|
@ -30,7 +30,7 @@ if ( isset( $HTTP_RAW_POST_DATA ) ) {
|
||||||
/** Include the bootstrap for setting up WordPress environment */
|
/** Include the bootstrap for setting up WordPress environment */
|
||||||
require_once __DIR__ . '/wp-load.php';
|
require_once __DIR__ . '/wp-load.php';
|
||||||
|
|
||||||
if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
|
if ( isset( $_GET['rsd'] ) ) { // https://cyber.harvard.edu/blogs/gems/tech/rsd.html
|
||||||
header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
|
header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
|
||||||
echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>';
|
echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>';
|
||||||
?>
|
?>
|
||||||
|
@ -46,9 +46,9 @@ if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/r
|
||||||
<api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url( 'xmlrpc.php', 'rpc' ); ?>" />
|
<api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url( 'xmlrpc.php', 'rpc' ); ?>" />
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Add additional APIs to the Really Simple Discovery (RSD) endpoint.
|
* Adds additional APIs to the Really Simple Discovery (RSD) endpoint.
|
||||||
*
|
*
|
||||||
* @link http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
|
* @link https://cyber.harvard.edu/blogs/gems/tech/rsd.html
|
||||||
*
|
*
|
||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue