/** Include the bootstrap for setting up WordPress environment */
require_once __DIR__ . '/wp-load.php';
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'
) . '"?' . '>';
?>
<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
<service>
<engineName>WordPress</engineName>
<engineLink>https://wordpress.org/</engineLink>
<homePageLink><?php
bloginfo_rss( 'url'
); ?></homePageLink>
<apis>
<api name="WordPress" blogID="1" preferred="true" apiLink="<?php
echo site_url( 'xmlrpc.php', 'rpc'
); ?>" />
<api name="Movable Type" blogID="1" preferred="false" apiLink="<?php
echo site_url( 'xmlrpc.php', 'rpc'
); ?>" />
<api name="MetaWeblog" 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
/**
* Fires when adding APIs to the Really Simple Discovery (RSD) endpoint.
*
* @link https://cyber.harvard.edu/blogs/gems/tech/rsd.html
*
* @since 3.5.0
*/