[wp-trac] [WordPress Trac] #44091: Rename exports folder to avoid deleting other files

WordPress Trac noreply at wordpress.org
Tue May 15 15:51:56 UTC 2018


#44091: Rename exports folder to avoid deleting other files
------------------------------+-----------------------
 Reporter:  iandunn           |       Owner:  (none)
     Type:  defect (bug)      |      Status:  assigned
 Priority:  high              |   Milestone:  4.9.6
Component:  Administration    |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  gdpr needs-patch  |     Focuses:
------------------------------+-----------------------

Comment (by iandunn):

 A constant would be the most consistent with other folders, like
 `WP_LANG_DIR` and `WPMU_PLUGIN_DIR`, but would require modifying `wp-
 config.php` instead of letting plugins customize it.

 The easiest option would be to just continue manually hardcoding it in all
 3 locations. That seems like it's hard to maintain and prone to human
 error, though.

 I think a function that applies a filter to the return value might be the
 best way to go. If we do that, we'll need to make sure that the file it's
 contained in is always `require_once()`'d from the callers, unless the
 file is one that is always loaded on the front and back ends.

 Some [https://wordpress.slack.com/archives/C9695RJBW/p1526397454000275
 alternate names] were discussed in Slack.

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


More information about the wp-trac mailing list