Services_JSON::isError() –
You appear to be a bot. Output may be restricted
Description
Usage
Services_JSON::isError( $data, $code );
Parameters
- $data
- ( mixed ) required –
- $code
- ( mixed ) optional –
Returns
void
TO DO
Ultimately, this should just call PEAR::isError()
Source
File name: wordpress/wp-includes/class-json.php
Lines:
1 to 13 of 13
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) && ($data instanceof services_json_error || is_subclass_of($data, 'services_json_error'))) { return true; } return false; }