[wp-trac] [WordPress Trac] #54648: Improve filter to enable setting quality for each subsize image

WordPress Trac noreply at wordpress.org
Wed Nov 20 17:21:43 UTC 2024


#54648: Improve filter to enable setting quality for each subsize image
-------------------------------------+-------------------------------------
 Reporter:  Mte90                    |       Owner:  adamsilverstein
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.8
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-unit-    |     Focuses:  performance,
  tests changes-requested            |  sustainability
-------------------------------------+-------------------------------------

Comment (by adamsilverstein):

 @sppramodh Thanks for the detailed test report!

 > The last argument, $size, in wp_editor_set_quality() was occasionally
 passed as an object instead of an array when processing the original
 uploaded image.

 very interesting, this type of inconsistency can lead to bugs, so we
 should probably fix that. Good catch.

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


More information about the wp-trac mailing list