Skip to content

Commit

Permalink
stop Autooptimze on special pages
Browse files Browse the repository at this point in the history
  • Loading branch information
iverok committed Mar 3, 2023
1 parent cc4a1f5 commit d56d0e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Vipps.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2101,6 +2101,8 @@ public function pre_handle_404($current, $query) {
if (!is_admin()) {
$special = $this->is_special_page();
if ($special) {
// Ensure very early on that Autooptimize does not try to optimize us (if installed) IOK 2023-03-04
add_filter( 'autoptimize_filter_noptimize', '__return_true');
return true;
}
}
Expand Down

0 comments on commit d56d0e9

Please sign in to comment.