#44158 closed defect (bug) (fixed)
Privacy: When path not created wp_mkdir_p() returns false, not WP_Error
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.9.7 | Priority: | normal |
| Severity: | normal | Version: | 4.9.6 |
| Component: | Privacy | Keywords: | has-patch |
| Focuses: | administration | Cc: |
Description
In wp_privacy_generate_personal_data_export_file(), we have:
$result = wp_mkdir_p( $exports_dir );
if ( is_wp_error( $result ) ) {
wp_send_json_error( $result->get_error_message() );
}
but the output of wp_mkdir_p() is only boolean.
Attachments (1)
Change History (9)
Note: See
TracTickets for help on using
tickets.
44158.diff adjust the case when
wp_mkdir_p()is unable to create the export folder.