WordPress.org

Make WordPress Core

#23675 closed defect (bug) (fixed)

Media modal should clear gallery state after insertion

Reported by: koopersmith Owned by: koopersmith
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Media Keywords:
Focuses: Cc:

Description

This one snuck by us in 3.5 — after inserting a gallery, when the media modal is reopened, it remains on the edit screen and the gallery items are still selected. Since they've already been inserted, this UX is less than ideal. Let's fix that.

Change History (2)

comment:1 koopersmith14 months ago

  • Owner set to koopersmith
  • Status changed from new to accepted

comment:2 koopersmith14 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 23590:

Media: Reset modal after gallery insertion.

Removes hardcoded (and vestigial) 'upload' states in favor of using the default modal state.
When a media toolbar action is triggered, reset the modal after switching to the new state (as opposed to beforehand).

fixes #23675.

Note: See TracTickets for help on using tickets.