Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#29125 closed defect (bug) (fixed)

Exception when video's meta is not set on wp-view video-playlist.

Reported by: programmin's profile programmin Owned by:
Milestone: 4.0 Priority: normal
Severity: normal Version: 3.9.1
Component: General Keywords:
Focuses: ui, javascript Cc:

Description

In wp-playlists.js, I had this for model.toJSON() just before the exception, on standard 2014 theme:

artists: true
caption: ""
description: ""
dimensions: Object
image: undefined
index: 2
meta: undefined
src: "url of a .ogv"
thumb: undefined
title: "small"
type: "video/ogg"

Lack of meta.artist causes exception, which breaks other behavior that would run later.

Stack trace:

x.template.i underscore.min.js?ver=1.6.0:1
(anonymous function) wp-util.js?ver=3.9.1:28
(anonymous function) wp-playlist.js?ver=3.9.1:122
x.each.x.forEach underscore.min.js?ver=1.6.0:1
c.each.o.(anonymous function) backbone.min.js?ver=1.1.2:1
Backbone.View.extend.renderTracks wp-playlist.js?ver=3.9.1:116
Backbone.View.extend.initialize wp-playlist.js?ver=3.9.1:27
b.View backbone.min.js?ver=1.1.2:1
d backbone.min.js?ver=1.1.2:1
(anonymous function) mce-view.js?ver=3.9.1:584
n.extend.each jquery.js?ver=1.11.0:2
n.fn.n.each jquery.js?ver=1.11.0:2
(anonymous function) mce-view.js?ver=3.9.1:573
x.each.x.forEach underscore.min.js?ver=1.6.0:1
wp.mce.media.PlaylistView.wp.mce.View.extend.render mce-view.js?ver=3.9.1:569
n.Callbacks.j jquery.js?ver=1.11.0:2
n.Callbacks.k.fireWith jquery.js?ver=1.11.0:2
(anonymous function) media-models.js?ver=3.9.1:777
n.Callbacks.j jquery.js?ver=1.11.0:2
n.Callbacks.k.fireWith jquery.js?ver=1.11.0:2
(anonymous function) wp-util.js?ver=3.9.1:96
n.Callbacks.j jquery.js?ver=1.11.0:2
n.Callbacks.k.fireWith jquery.js?ver=1.11.0:2
x jquery.js?ver=1.11.0:4
n.ajaxTransport.send.b jquery.js?ver=1.11.0:4

Change History (1)

#1 @wonderboymusic
10 years ago

  • Milestone changed from Awaiting Review to 4.0
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [29281].

Note: See TracTickets for help on using tickets.