summaryrefslogtreecommitdiffstats
path: root/wp-includes
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-15 17:25:03 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-15 17:25:03 +0000
commit22c5a6f185aafff9267ce16db4e890f9f453aa61 (patch)
treea5596fc8d41fe6f1d9183fe34b69a98fc30bf8c2 /wp-includes
parent62be96c8da309f5fb3987d978b926f0e00266030 (diff)
downloadwordpress-mu-22c5a6f185aafff9267ce16db4e890f9f453aa61.tar.gz
wordpress-mu-22c5a6f185aafff9267ce16db4e890f9f453aa61.tar.xz
wordpress-mu-22c5a6f185aafff9267ce16db4e890f9f453aa61.zip
If a blogger really needs xmlrpc, then add "xmlrpc_active"="yes" to their blog's options table
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1078 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes')
-rw-r--r--wp-includes/wpmu-functions.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index e31d86e..dc1b7cc 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -1929,6 +1929,10 @@ function is_xmlrpc_active() {
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, '<methodName>pingback.ping</methodName>' ) === false && get_site_option( 'xmlrpc_active' ) != 'yes' )
die();