Merge pull request #1 from Facyla/Facyla-patch-error-msg-csv-export

Error message in logs on CSV export error
This commit is contained in:
Florian DANIEL aka Facyla 2022-09-23 12:48:36 +02:00 committed by GitHub
commit 425a82e66b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ abstract class WC_CSV_Batch_Exporter extends WC_CSV_Exporter {
protected function write_csv_data( $data ) {
if ( ! file_exists( $this->get_file_path() ) || ! is_writeable( $this->get_file_path() ) ) {
error_log(__("ERROR : Cannot create temporary CSV export file : please check permissions on upload directory.", 'woocommerce'));
return false;
}