diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index 7c96148527..3fa20a6ab9 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -539,6 +539,9 @@ add: function( id, options ) { var workflow = this.get( id ); + if ( workflow ) // only add once: if exists return existing + return workflow; + workflow = workflows[ id ] = wp.media( _.defaults( options || {}, { frame: 'post', state: 'insert',