-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
21 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,21 @@ | ||
<?php | ||
/** | ||
* If using Wordfence you will find that their version of this file is deleted from ABSPATH | ||
* during WordPress updates, which causes the website to crash. | ||
* | ||
* This version of the file should be loaded via `auto_prepend_file` (instead of Wordfence's | ||
* version) by putting the following snippet into "/path/to/repo/web/.user.ini": | ||
* | ||
* ; Wordfence WAF | ||
* auto_prepend_file = '/path/to/repo/vendor/eighteen73/nebula-tools/includes/wordfence-waf.php' | ||
* ; END Wordfence WAF | ||
* | ||
* This file has no effect if Wordfence is not installed. | ||
* | ||
* @package NebulaTools | ||
*/ | ||
|
||
if ( file_exists( dirname( __DIR__, 4 ) . '/web/app/plugins/wordfence/waf/bootstrap.php' ) ) { | ||
define( 'WFWAF_LOG_PATH', dirname( __DIR__, 4 ) . '/web/app/wflogs/' ); | ||
include_once dirname( __DIR__, 4 ) . '/web/app/plugins/wordfence/waf/bootstrap.php'; | ||
} |