mirror of
git://develop.git.wordpress.org/
synced 2025-03-22 13:00:29 +01:00
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
This commit is contained in:
parent
69a4f35a7b
commit
5445ae3ce0
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user