diff --git a/assets/js/options.js b/assets/js/options.js index f310ad819..6fcb0d45c 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; 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 ); } /** 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', ]; }