s/method_exists/is_callable/. props hakre, fixes #14933.
git-svn-id: https://develop.svn.wordpress.org/trunk@16809 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7cefd23188
commit
86df54f82a
@ -442,7 +442,7 @@ EOD;
|
|||||||
} else {
|
} else {
|
||||||
// It's a function - does it exist?
|
// It's a function - does it exist?
|
||||||
if (is_array($method)) {
|
if (is_array($method)) {
|
||||||
if (!method_exists($method[0], $method[1])) {
|
if (!is_callable(array($method[0], $method[1]))) {
|
||||||
return new IXR_Error(-32601, 'server error. requested object method "'.$method[1].'" does not exist.');
|
return new IXR_Error(-32601, 'server error. requested object method "'.$method[1].'" does not exist.');
|
||||||
}
|
}
|
||||||
} else if (!function_exists($method)) {
|
} else if (!function_exists($method)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user