diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/customize/class-wp-customize-media-control.php --- a/wp/wp-includes/customize/class-wp-customize-media-control.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/customize/class-wp-customize-media-control.php Fri Sep 05 18:40:08 2025 +0200 @@ -88,16 +88,18 @@ if ( is_object( $this->setting ) ) { if ( $this->setting->default ) { - // Fake an attachment model - needs all fields used by template. - // Note that the default value must be a URL, NOT an attachment ID. + /* + * 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', 'webp' ), true ) ? 'image' : 'document'; + $type = in_array( $ext, array( 'jpg', 'png', 'gif', 'bmp', 'webp', 'avif' ), true ) ? 'image' : 'document'; $default_attachment = array( 'id' => 1, 'url' => $this->setting->default, 'type' => $type, - 'icon' => wp_mime_type_icon( $type ), + 'icon' => wp_mime_type_icon( $type, '.svg' ), 'title' => wp_basename( $this->setting->default ), ); @@ -243,7 +245,7 @@ case 'image': return array( 'select' => __( 'Select image' ), - 'site_icon' => __( 'Select site icon' ), + 'site_icon' => __( 'Select Site Icon' ), 'change' => __( 'Change image' ), 'default' => __( 'Default' ), 'remove' => __( 'Remove' ),