Skip to content

Commit

Permalink
Remove unnecessary JSON pretty-printing
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Mar 10, 2024
1 parent 2f90645 commit 02aab4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/optimization-detective/storage/post-type.php
Expand Up @@ -190,7 +190,7 @@ static function ( OD_URL_Metric $url_metric ): array {
},
$group_collection->get_flattened_url_metrics()
),
JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES // TODO: No need for pretty-printing.
JSON_UNESCAPED_SLASHES // No need for escaped slashes since not printed to frontend.
);

$has_kses = false !== has_filter( 'content_save_pre', 'wp_filter_post_kses' );
Expand Down

0 comments on commit 02aab4d

Please sign in to comment.