Files
Testing/blog/wp-content/plugins/stream/includes/feeds/json.php
sean 343b4a3f3f
Some checks are pending
deploy-testing / deploy (push) Waiting to run
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.
}