Skip to content

Commit

Permalink
add the wp cerber base class
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Aug 30, 2024
1 parent 5adb0f1 commit 4a9413f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions inc/compatibility/class-wpcerber.php
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();
}
}

0 comments on commit 4a9413f

Please sign in to comment.