[wp-trac] [WordPress Trac] #64557: WP_Customize_Media_Control default webp

WordPress Trac noreply at wordpress.org
Tue Jan 27 18:47:20 UTC 2026


#64557: WP_Customize_Media_Control default webp
--------------------------+-----------------------------
 Reporter:  buutqn        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  6.9
 Severity:  minor         |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 Class WP_Customize_Media_Control, in function to_json, ignores different
 number of characters for extensions, ignoring those extensions that has 4
 characters.
 [https://github.com/WordPress/wordpress-develop/blob/6.9/src/wp-
 includes/customize/class-wp-customize-media-control.php#L95-L96]

 Line 95 will not return "webp" or "avif":
 {{{#!php
 $ext  = substr( $this->setting->default, -3 );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64557>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list