Skip to content

Commit

Permalink
Merge pull request #121 from arunshenoy99/fix/deprecated-warning
Browse files Browse the repository at this point in the history
Adds a null check
  • Loading branch information
wpscholar authored Mar 25, 2024
2 parents 48b266a + 9cc21e2 commit 2b4930e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions endurance-page-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,10 @@ public function purge_cdn_single( $pattern = '' ) {
*/
public function should_throttle( $uri, $type ) {

if ( is_null( $uri ) ) {
return true;
}

$should_throttle = false;

$this->should_update_throttled_items = true;
Expand Down

0 comments on commit 2b4930e

Please sign in to comment.