Make WordPress Core

Ticket #42968: 42968.diff

File 42968.diff, 894 bytes (added by adamsilverstein, 7 years ago)
  • src/wp-includes/js/media-views.js

    diff --git src/wp-includes/js/media-views.js src/wp-includes/js/media-views.js
    index 95db551a68..80442ea721 100644
    Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Librar 
    954954                }
    955955
    956956                this._filterContext();
    957                 this.get('library').on( 'add', this._filterContext, this );
    958957
    959958                this.resetDisplays();
    960959        },
  • src/wp-includes/js/media/controllers/library.js

    diff --git src/wp-includes/js/media/controllers/library.js src/wp-includes/js/media/controllers/library.js
    index 6f30cbb354..7a0f965f7c 100644
    Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Librar 
    8686                }
    8787
    8888                this._filterContext();
    89                 this.get('library').on( 'add', this._filterContext, this );
    9089
    9190                this.resetDisplays();
    9291        },