-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Block] Post Featured ImageAffects the Post Featured Image BlockAffects the Post Featured Image Block[Feature] MediaAnything that impacts the experience of managing mediaAnything that impacts the experience of managing media[Priority] Highest (OMGBBQ)Used to indicate widespread, critical issues that need immediate attentionUsed to indicate widespread, critical issues that need immediate attention[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Description
Description
When setting a featured image using the post/page settings, only the last uploaded image is displayed in the media library modal:
This happens on WordPress 6.6-RC1 and with and without the Gutenberg plugin active.
The following JavaScript error is being displayed on the browser console:
media-models.min.js?ver=6.6-RC1:2
Uncaught TypeError: t.get is not a function
at n.comparator (media-models.min.js?ver=6.6-RC1:2:5566)
at e.comparator (media-views.min.js?ver=6.6-RC1:2:7240)
at Array.sort (<anonymous>)
at n.sort (backbone.min.js?ver=1.5.0:2:11690)
at n.set (backbone.min.js?ver=1.5.0:2:10286)
at n.add (backbone.min.js?ver=1.5.0:2:8973)
at n.validate (media-models.min.js?ver=6.6-RC1:2:2960)
at n._validateHandler (media-models.min.js?ver=6.6-RC1:2:3953)
at p (backbone.min.js?ver=1.5.0:2:3818)
at f (backbone.min.js?ver=1.5.0:2:3497)
Props to @mrfoxtalbot for finding out about this issue.
Step-by-step reproduction instructions
- Use a site with WordPress 6.6-RC1, with or without the Gutenberg plugin active.
- Make sure you have a few images on the site media library
- Create a new post/page.
- Click on the
Set features imagebutton. - Check that only the last uploaded image is being displayed.
Screenshots, screen recording, code snippet
Screen recording with the steps to reproduce this error:
Screen.Capture.on.2024-07-02.at.15-37-54.mp4
Environment info
WordPress Version: 6.6-RC1
Theme: Twenty Twenty-FourVersion: 1.1
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] Post Featured ImageAffects the Post Featured Image BlockAffects the Post Featured Image Block[Feature] MediaAnything that impacts the experience of managing mediaAnything that impacts the experience of managing media[Priority] Highest (OMGBBQ)Used to indicate widespread, critical issues that need immediate attentionUsed to indicate widespread, critical issues that need immediate attention[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
