WordPress.org

Make WordPress Core

Changeset 16809


Ignore:
Timestamp:
12/08/2010 07:27:49 PM (7 years ago)
Author:
nacin
Message:

s/method_exists/is_callable/. props hakre, fixes #14933.

File:
1 edited

Legend:

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

    r16770 r16809  
    443443            // It's a function - does it exist?
    444444            if (is_array($method)) {
    445                 if (!method_exists($method[0], $method[1])) {
     445                if (!is_callable(array($method[0], $method[1]))) {
    446446                    return new IXR_Error(-32601, 'server error. requested object method "'.$method[1].'" does not exist.');
    447447                }
Note: See TracChangeset for help on using the changeset viewer.