mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 01:22:47 +01:00
Patch Services_JSON to use the proper function name and avoid a fatal error. see #24210.
git-svn-id: https://develop.svn.wordpress.org/trunk@24587 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8669be7094
commit
32528edd1b
@ -492,7 +492,7 @@ class Services_JSON
|
||||
|
||||
return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)
|
||||
? 'null'
|
||||
: new Services_JSON_Error(class_name($var).
|
||||
: new Services_JSON_Error(get_class($var).
|
||||
" toJSON returned an object with a toJSON method.");
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user