From 5c276aac16e4d4c7ba2d711dfa20c15f83d8f331 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 26 Oct 2007 11:09:56 +0000 Subject: Remove "disable xml-rpc" feature, it's going in a plugin. Added wpmu_options and update_wpmu_options hooks to add options to wpmu-options.php git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1132 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/wpmu-functions.php | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'wp-includes') diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 40eb75b..14ba2ba 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1868,19 +1868,4 @@ function redirect_this_site( $hosts ) { return array( $current_site->domain ); } add_filter( 'allowed_redirect_hosts', 'redirect_this_site' ); - -function is_xmlrpc_active() { - global $HTTP_RAW_POST_DATA; - if ($HTTP_RAW_POST_DATA) - $data = $HTTP_RAW_POST_DATA; - - // add this to a blog's options table to enable xmlrpc on that blog - if( get_option( 'xmlrpc_active' ) == 'yes' ) - return true; - - // kill everything but pingbacks if xmlrpc is disabled - if( defined( 'XMLRPC_REQUEST' ) && strpos( $data, 'pingback.ping' ) === false && (get_option( 'xmlrpc_active' ) == 'no' || get_site_option( 'xmlrpc_active' ) != 'yes' ) ) - die(); -} -add_action( 'init', 'is_xmlrpc_active' ); ?> -- cgit