From 1616f5a06f44186004b3dab186c625faae8ac91a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Perona?= Date: Fri, 16 Feb 2024 14:58:33 -0500 Subject: [PATCH 1/3] remove avif as supported type --- inc/functions/attachments.php | 1 - 1 file changed, 1 deletion(-) diff --git a/inc/functions/attachments.php b/inc/functions/attachments.php index b19488102..af361d74a 100755 --- a/inc/functions/attachments.php +++ b/inc/functions/attachments.php @@ -19,7 +19,6 @@ function imagify_get_mime_types( $type = null ) { 'png' => 'image/png', 'gif' => 'image/gif', 'webp' => 'image/webp', - 'avif' => 'image/avif', ]; } From 2c3dcbb1719d4f4a508e4a0830774884bf3b5e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Perona?= Date: Fri, 16 Feb 2024 14:58:43 -0500 Subject: [PATCH 2/3] update ajax URL identifier --- assets/js/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/options.js b/assets/js/options.js index b4d08b6b8..e02250635 100755 --- a/assets/js/options.js +++ b/assets/js/options.js @@ -655,7 +655,7 @@ window.imagify = window.imagify || {}; _this = this; - $.get( this.getAjaxUrl( 'MissingWebp', imagifyOptions.bulk.contexts ) ) + $.get( this.getAjaxUrl( 'MissingNextGen', imagifyOptions.bulk.contexts ) ) .done( function( response ) { var errorMessage; From 5074ad49e9988019ffbe3d242726f5f9694ccc9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Perona?= Date: Fri, 16 Feb 2024 15:56:31 -0500 Subject: [PATCH 3/3] update API function --- inc/functions/api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/functions/api.php b/inc/functions/api.php index e53831340..2168dd70e 100755 --- a/inc/functions/api.php +++ b/inc/functions/api.php @@ -277,14 +277,14 @@ function imagify_bulk_optimize( $contexts, $optimization_level ) { } /** - * Runs the WebP generation + * Runs the next-gen generation * * @param array $contexts An array of contexts (WP/Custom folders). * * @return void */ -function imagify_generate_webp( $contexts ) { - Imagify\Bulk\Bulk::get_instance()->run_generate_webp( $contexts ); +function imagify_generate_nextgen( $contexts ) { + Imagify\Bulk\Bulk::get_instance()->run_generate_nextgen( $contexts ); } /**