s/method_exists/is_callable/. props hakre, fixes #14933.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-12-08 19:27:49 +00:00
parent 071c5dff0d
commit a773f692ba
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ EOD;
} else {
// It's a function - does it exist?
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.');
}
} else if (!function_exists($method)) {