4th argument of wp.getOptions is optional so don't notice if it's not supplied.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
77aaa245c5
commit
ac3e880df7
|
@ -1373,7 +1373,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
$blog_id = (int) $args[0];
|
$blog_id = (int) $args[0];
|
||||||
$username = $args[1];
|
$username = $args[1];
|
||||||
$password = $args[2];
|
$password = $args[2];
|
||||||
$options = (array) $args[3];
|
$options = isset( $args[3] ) ? (array) $args[3] : array();
|
||||||
|
|
||||||
if ( !$user = $this->login($username, $password) )
|
if ( !$user = $this->login($username, $password) )
|
||||||
return $this->error;
|
return $this->error;
|
||||||
|
|
Loading…
Reference in New Issue