[wp-trac] [WordPress Trac] #44236: Maintain consistency between privacy export report and archive filenames
WordPress Trac
noreply at wordpress.org
Tue Sep 25 16:46:10 UTC 2018
#44236: Maintain consistency between privacy export report and archive filenames
-------------------------------------------------+-------------------------
Reporter: iandunn | Owner: GripsArt
Type: defect (bug) | Status: assigned
Priority: low | Milestone: 4.9.9
Component: Privacy | Version: 4.9.6
Severity: minor | Resolution:
Keywords: good-first-bug needs-testing has- | Focuses:
patch needs-unit-tests |
-------------------------------------------------+-------------------------
Comment (by garrett-eclipse):
That makes sense thanks @desrosj
So either a completely unique function or if `wp_unique_filename` is used
it would be done with a callback that would almost replicate the
incrementation but instead use random `$obscura` value in the while loop
checking `file_exists`, and in essence would do everything this chunk of
code does except randomize instead of increment.
https://github.com/WordPress/WordPress/blob/06b2e1776c017717eb083cc4568882507bb6f013
/wp-includes/functions.php#L2254-L2290
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44236#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list