Apply [5570] to 2.2. fixes #4357
git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bd01e62afc
commit
14f5c0289c
|
@ -538,7 +538,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
$username = $args[1];
|
$username = $args[1];
|
||||||
$password = $args[2];
|
$password = $args[2];
|
||||||
$category = $args[3];
|
$category = $args[3];
|
||||||
$max_results = $args[4];
|
$max_results = (int) $args[4];
|
||||||
|
|
||||||
if(!$this->login_pass_ok($username, $password)) {
|
if(!$this->login_pass_ok($username, $password)) {
|
||||||
return($this->error);
|
return($this->error);
|
||||||
|
|
Loading…
Reference in New Issue