Escape output according to WP sniffs
[MAILPOET-4129]
This commit is contained in:
@@ -39,7 +39,7 @@ abstract class Response {
|
||||
$response = array_merge($response, $data);
|
||||
|
||||
@header('Content-Type: application/json; charset=' . get_option('blog_charset'));
|
||||
echo WPFunctions::get()->wpJsonEncode($response);
|
||||
echo wp_json_encode($response);
|
||||
die();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user