← All changes
|
addons/automator/includes/actions/csv-creator-actions.php
+2
-2
8.7.7
→
8.8.2
View file →
| @@ -219,9 +219,9 @@ | ||
| 219 | 219 | |
| 220 | 220 | // Upload to WordPress uploads directory. |
| 221 | 221 | $upload = wp_upload_bits( $filename, null, $csv_content ); |
| 222 | 222 | if ( ! empty( $upload['error'] ) ) { |
| 223 | - error_log( 'WPbot CSV_Creator: upload failed — ' . $upload['error'] ); | |
| 223 | + //error_log( 'WPbot CSV_Creator: upload failed — ' . $upload['error'] ); | |
| 224 | 224 | return array( 'success' => false, 'message' => 'CSV upload failed: ' . $upload['error'] ); |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | // Register as a media library attachment. |
| @@ -235,9 +235,9 @@ | ||
| 235 | 235 | $upload['file'] |
| 236 | 236 | ); |
| 237 | 237 | |
| 238 | 238 | if ( is_wp_error( $attachment_id ) ) { |
| 239 | - error_log( 'WPbot CSV_Creator: attachment insert failed — ' . $attachment_id->get_error_message() ); | |
| 239 | + //error_log( 'WPbot CSV_Creator: attachment insert failed — ' . $attachment_id->get_error_message() ); | |
| 240 | 240 | return array( 'success' => false, 'message' => 'Could not add CSV to media library.' ); |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | return array( |