Plugin Updates
This commit is contained in:
@@ -380,8 +380,6 @@ function copyAttachmentUploadURLClipboard() {
|
||||
|
||||
// Clear the selection and move focus back to the trigger.
|
||||
event.clearSelection();
|
||||
// Handle ClipboardJS focus bug, see https://github.com/zenorocha/clipboard.js/issues/680
|
||||
triggerElement.trigger( 'focus' );
|
||||
// Show success visual feedback.
|
||||
clearTimeout( successTimeout );
|
||||
successElement.removeClass( 'hidden' );
|
||||
@@ -610,6 +608,11 @@ jQuery( document ).ready( function( $ ) {
|
||||
wpQueueError( pluploadL10n.noneditable_image );
|
||||
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.
|
||||
wpQueueError( pluploadL10n.noneditable_image );
|
||||
up.removeFile( file );
|
||||
return;
|
||||
}
|
||||
|
||||
fileQueued( file );
|
||||
|
||||
2
wp/wp-includes/js/plupload/handlers.min.js
vendored
2
wp/wp-includes/js/plupload/handlers.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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.
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user