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
This commit is contained in:
nacin 2010-04-03 07:18:16 +00:00
parent c6aed04009
commit 5c8d92d2b1

View File

@ -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)) {