Skip to content

Commit

Permalink
SITE-2577: Disable HEIC support for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Oct 28, 2024
1 parent b4b5035 commit 26f04ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions inc/pantheon-media.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

/*
* HEIC support added in 6.7 but not yet supported by ImageMagick on Pantheon.
*/
add_filter( 'image_editor_output_format', function( $output_format ) {
if ( isset($output_format['image/heic'] ) {
unset( $output_format['image/heic'] );
}
return $output_format;
} );
3 changes: 2 additions & 1 deletion pantheon.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
* @package pantheon
*/

define( 'PANTHEON_MU_PLUGIN_VERSION', '1.5.1' );
define( 'PANTHEON_MU_PLUGIN_VERSION', '1.5.2' );

if ( isset( $_ENV['PANTHEON_ENVIRONMENT'] ) ) {
require_once 'inc/functions.php';
require_once 'inc/pantheon-media.php';
require_once 'inc/pantheon-page-cache.php';
require_once 'inc/site-health.php';
if ( ! defined( 'DISABLE_PANTHEON_UPDATE_NOTICES' ) || ! DISABLE_PANTHEON_UPDATE_NOTICES ) {
Expand Down

0 comments on commit 26f04ec

Please sign in to comment.