From 02aab4d80548b9d27862bbd84d23d10f89248491 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sun, 10 Mar 2024 05:32:21 -0700 Subject: [PATCH] Remove unnecessary JSON pretty-printing --- plugins/optimization-detective/storage/post-type.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/optimization-detective/storage/post-type.php b/plugins/optimization-detective/storage/post-type.php index affb2adf9..ba072f0a8 100644 --- a/plugins/optimization-detective/storage/post-type.php +++ b/plugins/optimization-detective/storage/post-type.php @@ -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' );