From d26e048b4c4d1c45d443ef12ddf62387752d8b1a Mon Sep 17 00:00:00 2001 From: westi Date: Tue, 4 Aug 2009 21:30:21 +0000 Subject: [PATCH] Allow user registration to be enabled by an XMLRPC client. Fixes #10454 props josephscott. git-svn-id: http://svn.automattic.com/wordpress/trunk@11773 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xmlrpc.php b/xmlrpc.php index e8d8a2e835..f7116b6d12 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -419,6 +419,11 @@ class wp_xmlrpc_server extends IXR_Server { 'desc' => __( 'Time Format' ), 'readonly' => false, 'option' => 'time_format' + ), + 'users_can_register' => array( + 'desc' => __( 'Allow new users to sign up' ), + 'readonly' => false, + 'option' => 'users_can_register' ) ); @@ -1551,9 +1556,6 @@ class wp_xmlrpc_server extends IXR_Server { foreach( $options as $o_name => $o_value ) { $option_names[] = $o_name; - if( empty( $o_value ) ) - continue; - if( !array_key_exists( $o_name, $this->blog_options ) ) continue;