[wp-trac] [WordPress Trac] #27551: Edit Image doesn't work on custom header/background screen

WordPress Trac noreply at wordpress.org
Thu Mar 27 15:58:55 UTC 2014


#27551: Edit Image doesn't work on custom header/background screen
--------------------------+-------------------------
 Reporter:  ocean90       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  3.9
Component:  Appearance    |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  javascript    |
--------------------------+-------------------------
 Steps to reproduce:

 * Go to themes.php?page=custom-header
 * Click "Choose Image" to select an image from media library
 * Select an image and click "Edit Image" link in attachment details

 You will notice that nothing happens. Try to select another image now,
 broken too.

 From the JS console:


 {{{
 Uncaught TypeError: Cannot call method 'single' of undefined media-
 views.js?ver=3.9-beta2-27714-src:4313
 media.view.Attachment.media.View.extend.details media-
 views.js?ver=3.9-beta2-27714-src:4313
 media.view.Attachment.media.View.extend.initialize media-
 views.js?ver=3.9-beta2-27714-src:4094
 media.view.Attachment.Details.media.view.Attachment.extend.initialize
 media-views.js?ver=3.9-beta2-27714-src:5569
 Backbone.View backbone.js?ver=1.1.2:1001
 wp.Backbone.View.Backbone.View.extend.constructor wp-
 backbone.js?ver=3.9-beta2-27714-src:349
 media.View.wp.Backbone.View.extend.constructor media-
 views.js?ver=3.9-beta2-27714-src:1398
 child backbone.js?ver=1.1.2:1566
 child backbone.js?ver=1.1.2:1566
 media.view.AttachmentsBrowser.media.View.extend.createSingle media-
 views.js?ver=3.9-beta2-27714-src:5132
 triggerEvents backbone.js?ver=1.1.2:208
 Backbone.Events.trigger backbone.js?ver=1.1.2:148
 _.extend._onModelEvent backbone.js?ver=1.1.2:946
 triggerEvents backbone.js?ver=1.1.2:209
 Backbone.Events.trigger backbone.js?ver=1.1.2:149
 media.model.Selection.Attachments.extend.single media-
 models.js?ver=3.9-beta2-27714-src:1279
 triggerEvents backbone.js?ver=1.1.2:208
 Backbone.Events.trigger backbone.js?ver=1.1.2:148
 _.extend.reset backbone.js?ver=1.1.2:770
 media.view.Attachment.media.View.extend.toggleSelection media-
 views.js?ver=3.9-beta2-27714-src:4253
 media.view.Attachment.media.View.extend.toggleSelectionHandler media-
 views.js?ver=3.9-beta2-27714-src:4190
 n.event.dispatch jquery.js?ver=1.11.0:3
 r.handle jquery.js?ver=1.11.0:3
 }}}

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


More information about the wp-trac mailing list