Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53668, comment 29


Ignore:
Timestamp:
08/17/2021 09:04:12 PM (3 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53668, comment 29

    initial v1  
    1 Looking at the new test in 53668.6.diff, not sure that a good use of the `wp_unique_filename` filter. Perhaps having access to each filename that's checked for collision may be used in plugins, but may be better to add another/specific filter there that should probably just filter `$number` and not allow changing the (currently tested) filename?
     1Looking at the new test in 53668.6.diff, not sure that's a good use of the `wp_unique_filename` filter. Perhaps having access to each filename that's checked for collision may be used in plugins. May be better to add another/specific filter there that should probably just filter `$number` and not allow changing the (currently tested) filename?