Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #789 Fix error displayed when using generate missing next-gen versions button #805

Merged
merged 4 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions inc/functions/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand Down
1 change: 0 additions & 1 deletion inc/functions/attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function imagify_get_mime_types( $type = null ) {
'png' => 'image/png',
'gif' => 'image/gif',
'webp' => 'image/webp',
'avif' => 'image/avif',
];
}

Expand Down