[wp-trac] [WordPress Trac] #44204: Privacy export codebase in 4.9.6 doesn't use WP Filesystem API

WordPress Trac noreply at wordpress.org
Wed May 23 13:36:03 UTC 2018


#44204: Privacy export codebase in 4.9.6 doesn't use WP Filesystem API
--------------------------+--------------------------------------
 Reporter:  diablodale    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Privacy       |     Version:  4.9.6
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration, privacy
--------------------------+--------------------------------------

Comment (by birgire):

 Welcome to WordPress Trac @diablodale

 This crossed my mind when looking at ways to unit test the
 {{{wp_privacy_generate_personal_data_export_file()}}} function. I haven't
 looked into the internals of  WP Filesystem API, but I suspect it could
 make the testing easier. It seems e.g. Drupal is using ''vfsStream'' to
 mock the file system, but the requirements are PHP 5.3.

 I think this is a restriction for plugins that write the upload folder,
 but not for core in general, but it seems like a good suggestion here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44204#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list