diff --git src/js/media/controllers/library.js src/js/media/controllers/library.js
index ace0028644..2acc89a586 100644
|
|
Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Librar |
196 | 196 | isImageAttachment: function( attachment ) { |
197 | 197 | // If uploading, we know the filename but not the mime type. |
198 | 198 | if ( attachment.get('uploading') ) { |
199 | | return /\.(jpe?g|png|gif)$/i.test( attachment.get('filename') ); |
| 199 | return /\.(jpe?g|png|gif|webp)$/i.test( attachment.get('filename') ); |
200 | 200 | } |
201 | 201 | |
202 | 202 | return attachment.get('type') === 'image'; |