Opened 10 years ago
Closed 10 years ago
#33458 closed defect (bug) (fixed)
wp.media.frame remains active on the second instance.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.4 | Priority: | normal |
| Severity: | major | Version: | 4.2.4 |
| Component: | Media | Keywords: | has-patch |
| Focuses: | javascript | Cc: |
Description
I added in theme add_theme_support( 'post-thumbnails', array( 'post' ) ); in order to can set Featured Image.When I click on the Add Media button in the wp.media.frame is set the current frame, when I print in the console wp.media.frame.el.id,the result is "__wp-uploader-id-0".In the next step I click on the Featured Image button and in the wp.media.frame is set another instance of the frame, in the console the wp.media.frame.el.id gets "__wp-uploader-id-3", but when I click again on the Add Media button in the wp.media.frame remains the last frame and in the console is printed "__wp-uploader-id-3" instead of "__wp-uploader-id-0".
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 34254: