Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from nigrosimone/patch-1
Browse files Browse the repository at this point in the history
Abort W3TC loading if php is too old
  • Loading branch information
charlesLF authored Sep 26, 2016
2 parents d02d21f + a595a46 commit 75a8250
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions w3-total-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@
die();
}

/**
* Abort W3TC loading if php is too old
*/
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
return;
}

/**
* Abort W3TC loading if WordPress is upgrading
*/
Expand Down

0 comments on commit 75a8250

Please sign in to comment.