id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 43139,Gallery widget preview incorrectly updated after one image gets deleted,afercia,pento,"To reproduce: - go in the widgets screen - create a gallery widget with 7 images and save - the preview displays 6 images, the last image has an overlay with text ""+2"" [[Image(https://cldup.com/mbKHvWdzjI.jpg)]] - go in the media library - delete one of the images used for the gallery - go back in the widgets screen and open the gallery widget to see the preview - the preview displays 5 images, the last image has an overlay with text ""+2"" [[Image(https://cldup.com/8e2LlQpa5f.jpg)]] Since there's room available for the 6th image, the image should be displayed and the overlay with text ""+2"" shouldn't be there. Same happens in the Customizer. Note: Clicking ""Edit Gallery"" to make the media modal open and then clicking ""Update gallery"" rebuilds the preview ""fixing"" the issue.",defect (bug),closed,normal,5.1,Widgets,4.9,normal,fixed,has-screenshots has-patch needs-testing,,javascript