diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/customize/class-wp-customize-media-control.php --- a/wp/wp-includes/customize/class-wp-customize-media-control.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/customize/class-wp-customize-media-control.php Wed Sep 21 18:19:35 2022 +0200 @@ -91,7 +91,7 @@ // Fake an attachment model - needs all fields used by template. // Note that the default value must be a URL, NOT an attachment ID. $ext = substr( $this->setting->default, -3 ); - $type = in_array( $ext, array( 'jpg', 'png', 'gif', 'bmp' ), true ) ? 'image' : 'document'; + $type = in_array( $ext, array( 'jpg', 'png', 'gif', 'bmp', 'webp' ), true ) ? 'image' : 'document'; $default_attachment = array( 'id' => 1, @@ -170,13 +170,13 @@
<# } #> <# } else if ( 'video' === data.attachment.type ) { #>