Make WordPress Core

Changeset 13958


Ignore:
Timestamp:
04/03/2010 07:18:16 AM (14 years ago)
Author:
nacin
Message:

Check for string, as method may be an array. fixes #10778

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-IXR.php

    r12263 r13958  
    357357        }
    358358        // Are we dealing with a function or a method?
    359         if (substr($method, 0, 5) == 'this:') {
     359        if ( is_string( $method ) && substr($method, 0, 5) == 'this:' ) {
    360360            // It's a class method - check it exists
    361361            $method = substr($method, 5);
Note: See TracChangeset for help on using the changeset viewer.