From 5c8d92d2b15056fb18e3f3996107bbb25ecbd104 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 3 Apr 2010 07:18:16 +0000 Subject: [PATCH] Check for string, as method may be an array. fixes #10778 git-svn-id: http://svn.automattic.com/wordpress/trunk@13958 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 f8d61fe82..ea5c01b96 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -356,7 +356,7 @@ EOD; $args = $args[0]; } // Are we dealing with a function or a method? - if (substr($method, 0, 5) == 'this:') { + if ( is_string( $method ) && substr($method, 0, 5) == 'this:' ) { // It's a class method - check it exists $method = substr($method, 5); if (!method_exists($this, $method)) {