diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index 8b4dff41d3..416e62e1b1 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -3767,7 +3767,8 @@ return; } - tabbables = this.$( ':tabbable' ); + // Skip the file input added by Plupload. + tabbables = this.$( ':tabbable' ).not( '.moxie-shim input[type="file"]' ); // Keep tab focus within media modal while it's open if ( tabbables.last()[0] === event.target && ! event.shiftKey ) {