Make WordPress Core

Ticket #31334: 31334_a.diff

File 31334_a.diff, 507 bytes (added by Aniruddh, 8 years ago)

Sorry, I have less knowledge about how this whole thing works hence the previous dirty patch. I have updated the patch like you said and attached it here.

  • wp-includes/js/customize-base.js

     
    331331                        if ( this.has( id ) ) {
    332332                                value = this.value( id );
    333333                                this.trigger( 'remove', value );
     334
     335                                if ( value.container ) {
     336                                        value.container.remove();
     337                                }
     338
    334339                                if ( value.extended( api.Value ) )
    335340                                        value.unbind( this._change );
    336341                                delete value.parent;