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
This commit is contained in:
westi 2009-08-04 21:30:21 +00:00
parent c484dd5c17
commit d26e048b4c
1 changed files with 5 additions and 3 deletions

View File

@ -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;