#44158 closed defect (bug) (fixed)
Privacy: When path not created wp_mkdir_p() returns false, not WP_Error
| Reported by: | birgire | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9.7 |
| Component: | Privacy | Version: | 4.9.6 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | administration |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
44158.diff adjust the case when
wp_mkdir_p()is unable to create the export folder.