Make WordPress Core

Ticket #24062: 24062.3.diff

File 24062.3.diff, 507 bytes (added by adamsilverstein, 12 years ago)

reintroduce if ( workflow ) check

  • wp-includes/js/media-editor.js

     
    539539                add: function( id, options ) {
    540540                        var workflow = this.get( id );
    541541
     542                        if ( workflow ) // only add once: if exists return existing
     543                                return workflow;
     544
    542545                        workflow = workflows[ id ] = wp.media( _.defaults( options || {}, {
    543546                                frame:    'post',
    544547                                state:    'insert',