From ac3e880df7ac888feb32849610d5fe38bf9c6377 Mon Sep 17 00:00:00 2001 From: westi Date: Tue, 26 Oct 2010 14:43:20 +0000 Subject: [PATCH] 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 --- wp-includes/class.wp-xmlrpc-server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class.wp-xmlrpc-server.php b/wp-includes/class.wp-xmlrpc-server.php index 6aa9aa472..1cec0163e 100644 --- a/wp-includes/class.wp-xmlrpc-server.php +++ b/wp-includes/class.wp-xmlrpc-server.php @@ -1373,7 +1373,7 @@ class wp_xmlrpc_server extends IXR_Server { $blog_id = (int) $args[0]; $username = $args[1]; $password = $args[2]; - $options = (array) $args[3]; + $options = isset( $args[3] ) ? (array) $args[3] : array(); if ( !$user = $this->login($username, $password) ) return $this->error;