[wp-trac] [WordPress Trac] #29017: [playlist], [audio] and [video] via AJAX don't work in 4.0-beta2 (but work in 3.9.1)

WordPress Trac noreply at wordpress.org
Thu Jul 24 14:23:25 UTC 2014


#29017: [playlist], [audio] and [video] via AJAX don't work in 4.0-beta2 (but work
in 3.9.1)
--------------------------+-----------------------------
 Reporter:  Looimaster    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In WordPress 3.9.1 I was able to get playlist/audio/video output via AJAX
 (with `do_shortcode()`) and initialize it like that:

 {{{
 jQuery('.wp-playlist').each(function(){
         return new WPPlaylistView({ el: this });
 });
 }}}

 With `[audio]` and `[video]` I called `$(this).mediaelementplayer();`
 instead.

 Here's the execution flow copied from Chrome's Console
 (4.0-beta2-20140723):

 {{{
 Uncaught TypeError: Cannot read property 'replace' of undefined
 underscore.min.js?ver=1.6.0:1
 x.template underscore.min.js?ver=1.6.0:1
 (anonymous function) wp-util.js?ver=4.0-beta2-20140723:27
 Backbone.View.extend.renderCurrent wp-
 playlist.js?ver=4.0-beta2-20140723:87
 Backbone.View.extend.initialize wp-playlist.js?ver=4.0-beta2-20140723:21
 b.View backbone.min.js?ver=1.1.2:1
 d backbone.min.js?ver=1.1.2:1
 (anonymous function) myfile.js?ver=1.0:23
 m.extend.each jquery.js?ver=1.11.1:2
 m.fn.m.each jquery.js?ver=1.11.1:2
 $.ajax.success myfile.js?ver=1.0:22
 j jquery.js?ver=1.11.1:2
 k.fireWith jquery.js?ver=1.11.1:2
 x jquery.js?ver=1.11.1:4
 b jquery.js?ver=1.11.1:4
 }}}

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


More information about the wp-trac mailing list