diff --git a/src/js/media/routers/manage.js b/src/js/media/routers/manage.js index 7f85f0a474..aabda330ae 100644 --- a/src/js/media/routers/manage.js +++ b/src/js/media/routers/manage.js @@ -43,9 +43,9 @@ var Router = Backbone.Router.extend(/** @lends wp.media.view.MediaFrame.Manage.R // Trigger the media frame to open the correct item. item = library.findWhere( { id: parseInt( query, 10 ) } ); - item.set( 'skipHistory', true ); if ( item ) { + item.set( 'skipHistory', true ); frame.trigger( 'edit:attachment', item ); } else { item = media.attachment( query );