diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index fa13dc8425..6a47d5878b 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -440,7 +440,7 @@ this.frame.get( previous ).off( 'change:library', this._excludeStateLibrary, this ); if ( current ) - this.frame.get( previous ).on( 'change:library', this._excludeStateLibrary, this ); + this.frame.get( current ).on( 'change:library', this._excludeStateLibrary, this ); }, _excludeStateLibrary: function() {