[wp-trac] [WordPress Trac] #43139: Gallery widget preview incorrectly updated after one image gets deleted

WordPress Trac noreply at wordpress.org
Sun Jan 21 15:54:20 UTC 2018


#43139: Gallery widget preview incorrectly updated after one image gets deleted
--------------------------+-----------------------------
 Reporter:  afercia       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  4.9
 Severity:  normal        |   Keywords:  has-screenshots
  Focuses:  javascript    |
--------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43139>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list