Skip to content

Commit 2b4930e

Browse files
authored
Merge pull request #121 from arunshenoy99/fix/deprecated-warning
Adds a null check
2 parents 48b266a + 9cc21e2 commit 2b4930e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

endurance-page-cache.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,10 @@ public function purge_cdn_single( $pattern = '' ) {
756756
*/
757757
public function should_throttle( $uri, $type ) {
758758

759+
if ( is_null( $uri ) ) {
760+
return true;
761+
}
762+
759763
$should_throttle = false;
760764

761765
$this->should_update_throttled_items = true;

0 commit comments

Comments
 (0)