[wp-trac] [WordPress Trac] #48453: Regression: Implied contract between image sub-size filenames and their base filename now broken

WordPress Trac noreply at wordpress.org
Wed Oct 30 00:57:11 UTC 2019


#48453: Regression: Implied contract between image sub-size filenames and their
base filename now broken
-------------------------------------+---------------------
 Reporter:  ianmjones                |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.3
Component:  Media                    |     Version:  trunk
 Severity:  major                    |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:
-------------------------------------+---------------------

Comment (by azaozz):

 Replying to [comment:11 chrisvanpatten]:
 > What’s the context where this would be used in core?

 This is not used in core, and hopefully never will be. But there are
 plugins that need it, so they implement similar code/solutions. Was
 thinking that having something like that in core will "standardize" the
 way it's done and let core fix it when needed, like in this case.

 Of course this is still just an idea :) Ideally all themes and plugins
 would fix their code and make these cases non-existent.

 At the same time if core can change something to help plugins work better,
 especially when adding new functionality, I'm thinking it would be good to
 do the change. As far as I see the only change needed in this case is to
 remove the variable number form scaled image file names. That would still
 make these file names easily recognizable, and as this is new feature, it
 has no back-compat issues.

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


More information about the wp-trac mailing list