Opened 3 years ago
Closed 3 years ago
#54403 closed defect (bug) (duplicate)
Changing featured image causes only one image show in media modal (using Classic Editor)
Reported by: | szaqal21 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.8.1 |
Component: | Post Thumbnails | Keywords: | |
Focuses: | Cc: |
Description
Changing featured image causes only one image show in media modal (using Classic Editor). This problem appeard in WP ver. 5.8 and is caused by infinite scroll setting. When using infinite scroll (is on) media modal shows all images, but when infinite scroll is off, then only one image shows when trying to change featured image. When featured image is set for the first time all images show in media modal (even in infinite scroll is off). My current workaround for this bug is to force load more images on initialization:
if( ! wp.media.view.settings.infiniteScrolling ) { wp.media.controller.FeaturedImage = wp.media.controller.FeaturedImage.extend( { initialize : function() { wp.media.controller.FeaturedImage.__super__.initialize.apply(this); this.get("library").more(); } }); }
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Infinite scroll is off and featured image is set for the first time.