summaryrefslogtreecommitdiffstats
path: root/wp-includes
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-17 14:08:58 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-17 14:08:58 +0000
commit7a9eacd843659bdd48ee2896ecfb0ef31024ea0f (patch)
tree7f911c5334c50cc017a2f528661ffe30da067e30 /wp-includes
parent4bbeb6883ba4deab91f5c48c81e4641c4d039539 (diff)
downloadwordpress-mu-7a9eacd843659bdd48ee2896ecfb0ef31024ea0f.tar.gz
wordpress-mu-7a9eacd843659bdd48ee2896ecfb0ef31024ea0f.tar.xz
wordpress-mu-7a9eacd843659bdd48ee2896ecfb0ef31024ea0f.zip
XMLRPC posting can be disabled per blog
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1086 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes')
-rw-r--r--wp-includes/wpmu-functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index a91d39e..b2e0969 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -1973,7 +1973,7 @@ function is_xmlrpc_active() {
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' )
+ if( defined( 'XMLRPC_REQUEST' ) && strpos( $data, '<methodName>pingback.ping</methodName>' ) === false && (get_option( 'xmlrpc_active' ) == 'no' || get_site_option( 'xmlrpc_active' ) != 'yes' ) )
die();
}
add_action( 'init', 'is_xmlrpc_active' );