Make WordPress Core

Changeset 52671


Ignore:
Timestamp:
02/04/2022 12:58:13 AM (2 years ago)
Author:
joedolson
Message:

Comments: Verify 'mirroring' property exists in media views.

Checks that the media collection has a mirroring property before accessing the property in media views.

Props MMDeveloper, mukesh27.
Fixes #53856.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/media/views/attachments/browser.js

    r51440 r52671  
    131131        }
    132132
    133         if ( this.collection.mirroring.args.s ) {
     133        if ( this.collection.hasOwnProperty('mirroring') && this.collection.mirroring.args.s ) {
    134134            count = this.collection.length;
    135135
Note: See TracChangeset for help on using the changeset viewer.