[wp-trac] [WordPress Trac] #33458: wp.media.frame remains active on the second instance.

WordPress Trac noreply at wordpress.org
Thu Aug 20 06:58:28 UTC 2015


#33458: wp.media.frame remains active on the second instance.
--------------------------+-----------------------------
 Reporter:  llemurya      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.2.4
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 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"}}}.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33458>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list