Changeset 25281
- Timestamp:
- 09/06/2013 04:55:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/xmlrpc.php
r25001 r25281 29 29 include('./wp-load.php'); 30 30 31 if ( isset( $_GET['rsd'] ) ) { // http:// archipelago.phrasewise.com/rsd31 if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html 32 32 header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); 33 33 ?> … … 43 43 <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" /> 44 44 <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 ?> 46 54 </apis> 47 55 </service> … … 62 70 $post_default_title = ""; 63 71 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' ); 66 79 $wp_xmlrpc_server = new $wp_xmlrpc_server_class; 67 80
Note: See TracChangeset
for help on using the changeset viewer.