[wp-trac] [WordPress Trac] #48304: Big Image: Revisit 'threshold' suffix on file names

WordPress Trac noreply at wordpress.org
Mon Oct 21 21:52:50 UTC 2019


#48304: Big Image: Revisit 'threshold' suffix on file names
--------------------------+---------------------
 Reporter:  kraftbj       |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.3
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by chrisvanpatten):

 > A filter did come to mind here when looking through the changes.

 To me this is the ultimate problem: right now,
 {{{$editor->generate_filename}}} is not filterable, and I really feel that
 it should be. Otherwise, you have to resort to ugly hacks where you watch
 for core's generating of the files and need to rename the file in place.
 It would make it radically easier to apply this type of file structure
 ({{{filename-size.ext}}}) across the board, rather than rely on the
 unpredictable image names that contain the image sizes.

 I'm still pretty disappointed about this, but ultimately recognise why it
 was made. Ultimately it just means I have to re-enable my ugly hack code
 to rename files again :)

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


More information about the wp-trac mailing list