Moved the wc-logs folder to the WP uploads folder.

Fixes #6509
This commit is contained in:
Barry Kooij 2014-10-14 14:29:56 +02:00
parent dadde1c1cf
commit 1af26ce928
1 changed files with 2 additions and 1 deletions

View File

@ -236,7 +236,8 @@ final class WooCommerce {
define( 'WC_DELIMITER', '|' );
}
if ( ! defined( 'WC_LOG_DIR' ) ) {
define( 'WC_LOG_DIR', ABSPATH . 'wc-logs/' );
$upload_dir = wp_upload_dir();
define( 'WC_LOG_DIR', $upload_dir['basedir'] . '/wc-logs/' );
}
}