Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#47545 new defect (bug)

Getting undefined wp.media.frame.state() after click on featured image preview

Reported by: nlemsieh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.2.1
Component: Media Keywords:
Focuses: javascript Cc:


In WP 5.x:

  • When I click on the featured image preview the wp.media.frame.state().get('selection') is undefined.
  • But, when I click on the "Replace image" button wp.media.frame.state().get('selection') returns the selected attachment object (which is the expected behaviour).

While in WP 4.x it returns correctly the attachment when I click on the featured image preview.

Change History (1)

#1 @afercia
2 months ago

  • Component changed from General to Media
Note: See TracTickets for help on using tickets.