X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/899389d1e4043331309c0433543419258b230b60..53f4633144ed68c8b8fb5861f992b5489894a940:/wp-includes/compat.php diff --git a/wp-includes/compat.php b/wp-includes/compat.php index 4317eb68..553faeb1 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -20,6 +20,8 @@ if ( !function_exists('_') ) { * @since 4.2.2 * @access private * + * @staticvar string $utf8_pcre + * * @param bool $set - Used for testing only * null : default - get PCRE/u capability * false : Used for testing - return false for future calls to this function @@ -193,6 +195,12 @@ if ( !function_exists('json_encode') ) { } if ( !function_exists('json_decode') ) { + /** + * @global Services_JSON $wp_json + * @param string $string + * @param bool $assoc_array + * @return object|array + */ function json_decode( $string, $assoc_array = false ) { global $wp_json; @@ -206,6 +214,11 @@ if ( !function_exists('json_decode') ) { $res = _json_decode_object_helper( $res ); return $res; } + + /** + * @param object $data + * @return array + */ function _json_decode_object_helper($data) { if ( is_object($data) ) $data = get_object_vars($data);