-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5adb0f1
commit 4a9413f
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* Compatibility class for WP Cerber plugin. | ||
* | ||
* @link https://docs.pantheon.io/plugins-known-issues#wp-rocket | ||
* @package Pantheon\Compatibility | ||
*/ | ||
|
||
namespace Pantheon\Compatibility; | ||
|
||
use Pantheon\Compatibility\Fixes\WPCerberFix; | ||
|
||
/** | ||
* Class WPRocket | ||
* | ||
* @package Pantheon\Compatibility | ||
*/ | ||
class WPCerber extends Base { | ||
/** | ||
* Run fix on each request. | ||
* | ||
* @var bool | ||
*/ | ||
protected $run_fix_everytime = true; | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function apply_fix() { | ||
WPCerberFix::apply(); | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function remove_fix() { | ||
WPCerberFix::remove(); | ||
} | ||
} |