Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#22255 closed defect (bug) (fixed)

Beta Media button disabled after publishing QuickPress post

Reported by: lessbloat Owned by: nacin
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords:
Focuses: Cc:


A user that we tested stumbled onto this one.

To reproduce:

  • From the dashboard publish (or save draft) for a post under QuickPress.
  • Then without refreshing the page, try to click the "Beta Media" button.


The page scrolls to the top, but the media modal doesn't appear.


The media modal should show, allowing you to add images to a second post.

Change History (4)

#1 @SergeyBiryukov
9 years ago

  • Milestone changed from Awaiting Review to 3.5
  • Version set to trunk

#2 @MikeHansenMe
9 years ago

  • Cc mdhansen@… added

I am seeing the same issue. I also noticed when opening the Beta Media (only works on first page load) and inserting an image it never gets added to the post. Not sure if it is related but figured it was worth mentioning.

#3 @azaozz
9 years ago

When saving the QuickPress postbox/widget is actually reloaded completely with xhr (not sure why). So the event bound to the Add Media button is of course removed. Best way to fix this would be to delegate the click on Add Media. We can also re-attach the event, but ... why go to all the trouble :)

#4 @nacin
9 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 22518:

Use event delegation for Add Media, allowing the event to bubble up to #wpbody. Keeps the Add Media button functional on a second use of QuickPress. fixes #22255.

Note: See TracTickets for help on using tickets.