* @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
}
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;
$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);