Int cast. Props to Alexander Concha for the find, Joseph Scott for the patch.
git-svn-id: https://develop.svn.wordpress.org/trunk@5570 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4308eff227
commit
0a52564fc2
@ -534,7 +534,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$username = $args[1];
|
||||
$password = $args[2];
|
||||
$category = $args[3];
|
||||
$max_results = $args[4];
|
||||
$max_results = (int) $args[4];
|
||||
|
||||
if(!$this->login_pass_ok($username, $password)) {
|
||||
return($this->error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user