From 86df54f82ad2607cf84323d08da935bf10b578ef Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 8 Dec 2010 19:27:49 +0000 Subject: [PATCH] s/method_exists/is_callable/. props hakre, fixes #14933. git-svn-id: https://develop.svn.wordpress.org/trunk@16809 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-IXR.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index 3803012484..9d89f0c58d 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -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)) {