Skip to content

Commit

Permalink
Update inc/Engine/Preload/Controller/CheckExcludedTrait.php
Browse files Browse the repository at this point in the history
Co-authored-by: Ahmed Saed <eng.ahmeds3ed@gmail.com>
  • Loading branch information
CrochetFeve0251 and engahmeds3ed authored Jul 10, 2023
1 parent d870ccc commit 985a06a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions inc/Engine/Preload/Controller/CheckExcludedTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ protected function is_excluded_by_filter( string $url ): bool {
*/
$regexes_urls = (array) apply_filters( 'rocket_preload_exclude_urls', [], $url );

if ( $this->is_match( $url, $regexes, false ) ) {
return true;
}

return $this->is_match( $url, $regexes_urls );
return $this->is_match( $url, $regexes, false ) || $this->is_match( $url, $regexes_urls );
}

/**
Expand Down

0 comments on commit 985a06a

Please sign in to comment.