Plugin Updates
This commit is contained in:
@@ -363,6 +363,11 @@ window.wp = window.wp || {};
|
||||
error( pluploadL10n.noneditable_image, {}, file, 'no-retry' );
|
||||
up.removeFile( file );
|
||||
return;
|
||||
} else if ( file.type === 'image/avif' && up.settings.avif_upload_error ) {
|
||||
// Disallow uploading of AVIF images if the server cannot edit them.
|
||||
error( pluploadL10n.noneditable_image, {}, file, 'no-retry' );
|
||||
up.removeFile( file );
|
||||
return;
|
||||
}
|
||||
|
||||
// Generate attributes for a new `Attachment` model.
|
||||
|
||||
Reference in New Issue
Block a user