Make WordPress Core

Changeset 3009


Ignore:
Timestamp:
11/07/2005 09:47:51 AM (19 years ago)
Author:
matt
Message:

Add RSD support. See http://archipelago.phrasewise.com/rsd

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r2896 r3009  
    8484// Actions
    8585add_action('publish_post', 'generic_ping');
     86add_action('wp_head', 'rsd_link');
    8687
    8788?>
  • trunk/wp-includes/template-functions-general.php

    r2952 r3009  
    654654}
    655655
     656function rsd_link() {
     657    echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('url') . "/xmlrpc.php?rsd\" />\n";
     658}
     659
    656660?>
  • trunk/xmlrpc.php

    r2983 r3009  
    55
    66include('./wp-config.php');
     7
     8if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd
     9header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);
     10
     11?>
     12<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
     13<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
     14  <service>
     15    <engineName>WordPress</engineName>
     16    <engineLink>http://wordpress.org/</engineLink>
     17    <homePageLink><?php bloginfo_rss('url') ?></homePageLink>
     18    <apis>
     19      <api name="Movable Type" blogID="1" preferred="true" apiLink="<?php bloginfo_rss('url') ?>/xmlrpc.php" />
     20      <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('url') ?>/xmlrpc.php" />
     21      <api name="Blogger" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('url') ?>/xmlrpc.php" />
     22    </apis>
     23  </service>
     24</rsd>
     25<?php
     26exit;
     27}
     28
    729include_once(ABSPATH . WPINC . '/class-IXR.php');
    830
Note: See TracChangeset for help on using the changeset viewer.