mirror of
git://develop.git.wordpress.org/
synced 2025-04-04 04:02:36 +02:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52671 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1712bfcf79
commit
8009f552a2
@ -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.mirroring.args.s ) {
|
||||
if ( this.collection.hasOwnProperty('mirroring') && this.collection.mirroring.args.s ) {
|
||||
count = this.collection.length;
|
||||
|
||||
if ( 0 === count ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user