Opened 11 years ago
Closed 11 years ago
#33458 closed defect (bug) (fixed)
wp.media.frame remains active on the second instance.
| Reported by: | llemurya | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Media | Version: | 4.2.4 |
| Severity: | major | Keywords: | has-patch |
| Cc: | Focuses: | javascript |
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".
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 34254: