[wp-trac] [WordPress Trac] #44158: Privacy: When path not created wp_mkdir_p() returns false, not WP_Error

WordPress Trac noreply at wordpress.org
Sat May 19 21:20:12 UTC 2018


#44158: Privacy: When path not created wp_mkdir_p() returns false, not WP_Error
----------------------------+-----------------------------
 Reporter:  birgire         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Privacy         |    Version:  4.9.6
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44158>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list