Deprecated Deprecated
This method has been deprecated. Use the PHP native JSON extension instead.
Syntax Syntax
Source Source
File: wp-includes/class-json.php
function isError($data, $code = null) { _deprecated_function( __METHOD__, '5.3.0', 'The PHP native JSON extension' ); if (class_exists('pear')) { return PEAR::isError($data, $code); } elseif (is_object($data) && (get_class($data) == 'services_json_error' || is_subclass_of($data, 'services_json_error'))) { return true; } return false; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |