From fdd1d24399348d529a1e4d8a012db15a735f24ea Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@13958 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 f8d61fe824..ea5c01b964 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)) {