Make WordPress Core

Ticket #14933: 14933.patch

File 14933.patch, 651 bytes (added by hakre, 13 years ago)
  • wp-includes/class-IXR.php

     
    441441        } else {
    442442            // It's a function - does it exist?
    443443            if (is_array($method)) {
    444                 if (!method_exists($method[0], $method[1])) {
     444                if (!is_callable(array($method[0], $method[1]))) {
    445445                    return new IXR_Error(-32601, 'server error. requested object method "'.$method[1].'" does not exist.');
    446446                }
    447447            } else if (!function_exists($method)) {