Optimization Detective should be disabled by default on post previews #1841
Labels
[Plugin] Optimization Detective
Issues for the Optimization Detective plugin
[Type] Bug
An existing feature is broken
Milestone
I just realized that the the logic in
od_can_optimize_response()
is accounting for Customizer preview (is_customize_preview()
) but not post previews (is_preview()
). It doesn't make sense to collect a URL Metric for a post that isn't fully published yet, sois_preview()
should be added as a condition to:performance/plugins/optimization-detective/optimization.php
Lines 161 to 177 in d94977f
The text was updated successfully, but these errors were encountered: