From 5445ae3ce05ef19ced7450ffae3306f2e364dac3 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sun, 27 Feb 2022 00:54:57 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@52806 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/media/views/attachments/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/media/views/attachments/browser.js b/src/js/media/views/attachments/browser.js index 7f40140fc5..00852a3999 100644 --- a/src/js/media/views/attachments/browser.js +++ b/src/js/media/views/attachments/browser.js @@ -130,7 +130,7 @@ AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.pro mediaFoundHasMoreResultsMessage = __( 'Number of media items displayed: %d. Scroll the page for more results.' ); } - if ( this.collection.hasOwnProperty('mirroring') && this.collection.mirroring.args.s ) { + if ( this.collection.mirroring && this.collection.mirroring.args.s ) { count = this.collection.length; if ( 0 === count ) {