[wp-trac] [WordPress Trac] #63180: Media Library Incorrectly Identifies Non-Identical Filenames as Duplicates

WordPress Trac noreply at wordpress.org
Wed Mar 26 15:52:55 UTC 2025


#63180: Media Library Incorrectly Identifies Non-Identical Filenames as Duplicates
-------------------------------------------+------------------------------
 Reporter:  zahnd                          |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Media                          |     Version:  6.7.2
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:
-------------------------------------------+------------------------------
Changes (by pbiron):

 * keywords:  needs-patch => needs-patch reporter-feedback


Comment:

 Hi @zahnd

 Thanx for the report (and welcome to Trac)!

 However, I'm not able to reproduce the situation of "500501.jpg" getting a
 "-1" appended to the filename.

 I could be wrong, but I suspect you've got a plugin (or theme) that is
 hooking into the
 [https://developer.wordpress.org/reference/hooks/wp_unique_filename/
 wp_unique_filename] filter.

 Have you tried with ALL plugins deactivated and a default theme (e.g.,
 TT4)?

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


More information about the wp-trac mailing list