Files
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

14 lines
347 B
PHP

<?php
/**
* Renders a JSON of records.
*
* @package WP_Stream
*/
header( 'Content-type: application/json; charset=' . get_option( 'blog_charset' ), true );
if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
echo wp_stream_json_encode( $records ); // xss ok.
} else {
echo wp_stream_json_encode( $records, JSON_PRETTY_PRINT ); // xss ok.
}