mirror of
git://develop.git.wordpress.org/
synced 2025-04-07 21:53:21 +02:00
XML-RPC: Update RSD specification URL in XMLRPC library.
This changeset updates the RSD specification URL to avoid extra redirection. Props utsav72640. Fixes #58503. git-svn-id: https://develop.svn.wordpress.org/trunk@55901 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ec5788c387
commit
5068f4781b
@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Whether this is an XML-RPC Request
|
||||
* Whether this is an XML-RPC Request.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
@ -30,7 +30,7 @@ if ( isset( $HTTP_RAW_POST_DATA ) ) {
|
||||
/** Include the bootstrap for setting up WordPress environment */
|
||||
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 );
|
||||
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' ); ?>" />
|
||||
<?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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user