Make WordPress Core

Changeset 24587


Ignore:
Timestamp:
07/08/2013 04:55:34 PM (11 years ago)
Author:
nacin
Message:

Patch Services_JSON to use the proper function name and avoid a fatal error. see #24210.

File:
1 edited

Legend:

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

    r23376 r24587  
    493493                        return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)
    494494                        ? 'null'
    495                         : new Services_JSON_Error(class_name($var).
     495                        : new Services_JSON_Error(get_class($var).
    496496                            " toJSON returned an object with a toJSON method.");
    497497                           
Note: See TracChangeset for help on using the changeset viewer.