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

Commit

Permalink
Abort W3TC loading if php is too old
Browse files Browse the repository at this point in the history
  • Loading branch information
nigrosimone authored Sep 26, 2016
1 parent d02d21f commit a595a46
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 a595a46

Please sign in to comment.