[wp-trac] [WordPress Trac] #48974: -1 being added to image uploads with Version 5.3.1

WordPress Trac noreply at wordpress.org
Sat Dec 14 20:40:02 UTC 2019


#48974: -1 being added to image uploads with Version 5.3.1
-------------------------------+------------------------------
 Reporter:  neotrope           |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  5.3.1
 Severity:  normal             |  Resolution:
 Keywords:  needs-patch close  |     Focuses:
-------------------------------+------------------------------

Comment (by pbiron):

 The change in behavior in 5.3.1 is simply extending the filename
 uniqueness checks that WP has always done to include a check for uploads
 that contain "dimension-like" filenames.

 But if you need to override that behavior, since WP 4.5.0 there has been
 the [https://developer.wordpress.org/reference/hooks/wp_unique_filename/
 wp_unique_filename] filter which you can use in a custom plugin.

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


More information about the wp-trac mailing list