Allow user registration to be enabled by an XMLRPC client. Fixes #10454 props josephscott.
git-svn-id: https://develop.svn.wordpress.org/trunk@11773 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c37c59c0b7
commit
92cc16ae04
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user