• Resolved AlanP57

    (@alanp57)


    This issue has come up a few times before with new releases of WordPress and was fixed after reporting it. I’m testing WordPress 5.7-RC1 and when selecting a featured image while using the Gutenberg editor, I am not able to refresh the contents of the media uploaded as usual with this line of code:
    wp.media.frame.content.get().collection.props.set({ignore: (+ new Date())});
    This code works for selecting images for embedding in a post or page but when opening the media uploader to find a new featured image, this line of code results in Uncaught TypeError: wp.media.frame.content.get() is null.

    • This topic was modified 3 years, 9 months ago by AlanP57.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Unable to refresh media uploader’ is closed to new replies.