Opened 8 years ago
Closed 8 years ago
#37334 closed defect (bug) (fixed)
Embeds preview not working in the media modal
Reported by: | swissspidy | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-screenshots has-patch |
Focuses: | javascript | Cc: |
Description
Not sure when it got broken, but noticed this while testing embeds for another ticket.
When embedding another WordPress site (or even the same site) and clicking on the pencil to edit the embed, the preview is not loaded correctly. Instead of hiding the <blockquote>
and showing the <iframe>
, it keeps displaying the <blockquote>
. Works fine in the editor and on the front-end.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
37334.diff enqueues the
wp-embed
script when a newwp_editor()
is instantiated and_WP_Editors::$has_medialib
is true.This fixes the preview inside the modal.