diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
index b00752e..dd52861 100644
|
|
|
function wp_privacy_generate_personal_data_export_file( $request_id ) {
|
| 2026 | 2026 | $exports_dir = wp_privacy_exports_dir(); |
| 2027 | 2027 | $exports_url = wp_privacy_exports_url(); |
| 2028 | 2028 | |
| 2029 | | $result = wp_mkdir_p( $exports_dir ); |
| 2030 | | if ( is_wp_error( $result ) ) { |
| 2031 | | wp_send_json_error( $result->get_error_message() ); |
| | 2029 | if ( ! wp_mkdir_p( $exports_dir ) ) { |
| | 2030 | wp_send_json_error( __( 'Unable to create export folder.' ) ); |
| 2032 | 2031 | } |
| 2033 | 2032 | |
| 2034 | 2033 | // Protect export folder from browsing. |