mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Patch Services_JSON to use the proper function name and avoid a fatal error. see #24210.
git-svn-id: http://core.svn.wordpress.org/trunk@24587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a8cb46d9a3
commit
ccff07a819
@ -492,7 +492,7 @@ class Services_JSON
|
|||||||
|
|
||||||
return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)
|
return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)
|
||||||
? 'null'
|
? 'null'
|
||||||
: new Services_JSON_Error(class_name($var).
|
: new Services_JSON_Error(get_class($var).
|
||||||
" toJSON returned an object with a toJSON method.");
|
" toJSON returned an object with a toJSON method.");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user