Make WordPress Core

Ticket #53856: 53856.3.diff

File 53856.3.diff, 615 bytes (added by joedolson, 2 years ago)

this.collection.mirroring instead of hasOwnProperty

  • src/js/media/views/attachments/browser.js

     
    130130                        mediaFoundHasMoreResultsMessage = __( 'Number of media items displayed: %d. Scroll the page for more results.' );
    131131                }
    132132
    133                 if ( this.collection.hasOwnProperty('mirroring') && this.collection.mirroring.args.s ) {
     133                if ( this.collection.mirroring && this.collection.mirroring.args.s ) {
    134134                        count = this.collection.length;
    135135
    136136                        if ( 0 === count ) {