diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-17 14:08:58 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-17 14:08:58 +0000 |
commit | 7a9eacd843659bdd48ee2896ecfb0ef31024ea0f (patch) | |
tree | 7f911c5334c50cc017a2f528661ffe30da067e30 | |
parent | 4bbeb6883ba4deab91f5c48c81e4641c4d039539 (diff) | |
download | wordpress-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
-rw-r--r-- | wp-includes/wpmu-functions.php | 2 |
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' ); |