Skip to content

Commit

Permalink
Fix bug with mediaframe not querying API (introduced with or around W…
Browse files Browse the repository at this point in the history
…ordPress 5.8)
  • Loading branch information
davidmpurdy committed Aug 21, 2022
1 parent 99c271e commit 80f6793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media/views/media-frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ cloudflareStream.media.view.MediaFrame = Post.extend( /** @lends @lends cloudfla
// library: wp.media.query( _.defaults( {
// type: 'video',
// }, options.library ) ),
library: new cloudflareStream.media.model.Query( _.defaults( null, {
library: new cloudflareStream.media.model.Query( null, _.defaults( null, {
type: 'video',
}, options.library ) ),
multiple: options.multiple ? 'reset' : false,
Expand Down

0 comments on commit 80f6793

Please sign in to comment.