Move logs to uploads folder (patch)
-
https://gist.github.com/systemsathomesdotcom/c5654ac30da31d234a67
classes/wp-security-debug-logger.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/wp-security-debug-logger.php b/classes/wp-security-debug-logger.php index 13906da..d2fb7e3 100644 --- a/classes/wp-security-debug-logger.php +++ b/classes/wp-security-debug-logger.php @@ -16,7 +16,8 @@ class AIOWPSecurity_Logger function __construct() { - $this->log_folder_path = AIO_WP_SECURITY_PATH . '/logs'; + $upload_dir = wp_upload_dir(); + $this->log_folder_path = $upload_dir['basedir'] . '/AIOWPSecurity_logs'; //TODO - check config and if debug is enabled then set the enabled flag to true $this->debug_enabled = true; }
https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Move logs to uploads folder (patch)’ is closed to new replies.