WordPress.org

Make WordPress Core

Changeset 25281


Ignore:
Timestamp:
09/06/2013 04:55:41 PM (5 years ago)
Author:
nacin
Message:

Inline documentation for hooks in xmlrpc.php.

The old link for RSD is dead; update to the new one.

props bftrick.
see #25229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmlrpc.php

    r25001 r25281  
    2929include('./wp-load.php');
    3030
    31 if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd
     31if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
    3232header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
    3333?>
     
    4343      <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
    4444      <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
    45       <?php do_action( 'xmlrpc_rsd_apis' ); ?>
     45      <?php
     46      /**
     47       * Add additional APIs to the Really Simple Discovery (RSD) endpoint.
     48       *
     49       * @see http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
     50       * @since 3.5.0
     51       */
     52      do_action( 'xmlrpc_rsd_apis' );
     53      ?>
    4654    </apis>
    4755  </service>
     
    6270$post_default_title = "";
    6371
    64 // Allow for a plugin to insert a different class to handle requests.
    65 $wp_xmlrpc_server_class = apply_filters('wp_xmlrpc_server_class', 'wp_xmlrpc_server');
     72/**
     73 * Filter the class used for handling XML-RPC requests.
     74 *
     75 * @since 3.1.0
     76 * @param string The name of the XML-RPC server class.
     77 */
     78$wp_xmlrpc_server_class = apply_filters( 'wp_xmlrpc_server_class', 'wp_xmlrpc_server' );
    6679$wp_xmlrpc_server = new $wp_xmlrpc_server_class;
    6780
Note: See TracChangeset for help on using the changeset viewer.