From 605bf3255aa695970a89fa77e7a28942fd6e9b34 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Mon, 13 Jan 2025 12:53:17 -0700 Subject: [PATCH] Fix settings to match file.type --- lib/block-editor-settings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/block-editor-settings.php b/lib/block-editor-settings.php index 30e349f586110d..3214281a0796d8 100644 --- a/lib/block-editor-settings.php +++ b/lib/block-editor-settings.php @@ -93,17 +93,17 @@ function gutenberg_get_block_editor_settings( $settings ) { // Check if WebP images can be edited. if ( ! wp_image_editor_supports( array( 'mime_type' => 'image/webp' ) ) ) { - $settings['typesNotSupportedByServer']['webp'] = true; + $settings['typesNotSupportedByServer']['image/webp'] = true; } // Check if AVIF images can be edited. if ( ! wp_image_editor_supports( array( 'mime_type' => 'image/avif' ) ) ) { - $settings['typesNotSupportedByServer']['avif'] = true; + $settings['typesNotSupportedByServer']['image/avif'] = true; } // Check if HEIC images can be edited. if ( ! wp_image_editor_supports( array( 'mime_type' => 'image/heic' ) ) ) { - $settings['typesNotSupportedByServer']['heic'] = true; + $settings['typesNotSupportedByServer']['image/heic'] = true; } $settings['styles'] = array_merge( $global_styles, get_block_editor_theme_styles() );