mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Int cast. Props to Alexander Concha for the find, Joseph Scott for the patch.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6a41f63aae
commit
070d2fd62b
@ -534,7 +534,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
Block a user