Make WordPress Core

Changeset 52806


Ignore:
Timestamp:
02/27/2022 12:54:57 AM (3 years ago)
Author:
joedolson
Message:

Media: Use consistent mirroring check in media views.

Change the mirroring property verification method to be consistent with other usages across models and attachments, since we don't care whether it's assigned directly on inherited.

Props MMDeveloper, SergeyBiryukov.
Fixes #53856.

File:
1 edited

Legend:

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

    r52671 r52806  
    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
Note: See TracChangeset for help on using the changeset viewer.