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

WordPress Trac noreply at wordpress.org
Tue May 15 19:49:43 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 has-patch needs-testing  |     Focuses:
------------------------------------------+-----------------------

Comment (by Ov3rfly):

 That went a bit wrong, DIRECTORY_SEPARATOR (if at all) should be used only
 for basedir, not baseurl.

 Just saw the different usage of trailingslashit() between the versions and
 wanted to ask for the reason.

 Not sure if trailingslashit() is necessary here at all though,
 wp_upload_dir() results usually do not have any trailing slashes or
 backslashes, so hardcoding slash (or the php seperator) between and at end
 should be fine.

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


More information about the wp-trac mailing list