[wp-trac] [WordPress Trac] #53668: Generated images for one file can be overwritten by another with the same name when mapping mime types for generated images

WordPress Trac noreply at wordpress.org
Fri Aug 20 23:56:49 UTC 2021


#53668: Generated images for one file can be overwritten by another with the same
name when mapping mime types for generated images
----------------------------------------------------+---------------------
 Reporter:  ianmjones                               |       Owner:  (none)
     Type:  defect (bug)                            |      Status:  new
 Priority:  normal                                  |   Milestone:  5.8.1
Component:  Media                                   |     Version:  5.8
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch needs-testing has-unit-tests  |     Focuses:
----------------------------------------------------+---------------------

Comment (by azaozz):

 Replying to [comment:31 ianmjones]:
 > Definitely (2) as the alt filenames are fast to check, and the $number
 would be neat as we could use that as a starting point if non-zero rather
 than starting from 1 ourselves as we currently have to.

 Sure, added to https://github.com/WordPress/wordpress-develop/pull/1591.
 In that case thinking the PR is ready for commit. Could you confirm it
 works well for your cases.

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


More information about the wp-trac mailing list