Skip to content

Commit

Permalink
new path to plugins directory
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Nov 6, 2024
1 parent a26b61d commit cbb7219
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions templates/wordfence-waf.php.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.

if (file_exists('{{ deploy_helper.new_release_path }}/web/app/plugins/wordfence/waf/bootstrap.php')) {
define('WFWAF_LOG_PATH', '{{ deploy_helper.new_release_path }}/../../wflogs/');
include_once '{{ deploy_helper.new_release_path }}/web/app/plugins/wordfence/waf/bootstrap.php';
if (file_exists('{{ deploy_helper.new_release_path }}/{{ project_public_path }}/{{ project_upload_path }}/../plugins/wordfence/waf/bootstrap.php')) {
if (! defined('WFWAF_LOG_PATH')) {
define('WFWAF_LOG_PATH', '{{ deploy_helper.new_release_path }}/../../wflogs/');
}
include_once '{{ deploy_helper.new_release_path }}/{{ project_public_path }}/{{ project_upload_path }}/../plugins/wordfence/waf/bootstrap.php';
}

0 comments on commit cbb7219

Please sign in to comment.