Is it possible to display the url of the featured image in json?
A greeting and thanks.
The header('Content-Type: application/json');
command is executed regardless of whether “?json” is present in the query string, meaning that ALL rendered content is served as type JSON. This breaks every theme.
At minimum, this plugin should be updated so that the “header()” command is wrapped in a conditional as well:
function add_header_xua() {
if(isset($_REQUEST['json'])) {
header('Content-Type: application/json');
}
}
]]>