[wp-trac] [WordPress Trac] #56442: Ensure `wp_editor_set_quality` filter consistently passes output mime type

WordPress Trac noreply at wordpress.org
Fri Oct 7 19:16:14 UTC 2022


#56442: Ensure `wp_editor_set_quality` filter consistently passes output mime type
-------------------------------------------------+-------------------------
 Reporter:  adamsilverstein                      |       Owner:
                                                 |  adamsilverstein
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Media                                |     Version:  5.8
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback commit                                |
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54417" 54417]:
 {{{
 #!CommitTicketReference repository="" revision="54417"
 Media: ensure the `wp_editor_set_quality` filter consistently passes the
 correct output mime type.

 Ensure that the mime type passed to the `wp_editor_set_quality` filter is
 correct when the output format is altered with the
 `image_editor_output_format` filter and the image is saved multiple times,
 for example when generating sub sizes. Previously, the original image mime
 type was passed instead of the output type after the initial save.

 Props flixos90, peterwilsoncc.
 Fixes #56442.
 }}}

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


More information about the wp-trac mailing list