Files
Testing/blog/wp-content/plugins/stream/includes/feeds/json.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -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.
}