Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d1f2de0e3f
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (20 sloc) 0.632 kb
<?php
/*
* Plugin Name: wp-xmlrpc-modernization
* Description: This plugin extends the basic XML-RPC API exposed by WordPress. Derived from GSoC '11 project.
* Version: 0.8.2
* Author: Max Cutler
* Author URI: http://www.maxcutler.com
*
*/
add_filter( 'wp_xmlrpc_server_class', 'replace_xmlrpc_server_class' );
function replace_xmlrpc_server_class( $class_name ) {
// only replace the default XML-RPC class if another plug-in hasn't already changed it
if ( $class_name === 'wp_xmlrpc_server' ) {
include_once( 'class-wp-xmlrpc-server-ext.php' );
return 'wp_xmlrpc_server_ext';
} else {
return $class_name;
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.