[wp-trac] [WordPress Trac] #29383: WPPlaylistView doesn't find the right script.

WordPress Trac noreply at wordpress.org
Wed Aug 27 00:37:44 UTC 2014


#29383: WPPlaylistView doesn't find the right script.
--------------------------+------------------------------
 Reporter:  programmin    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by programmin):

 Here's a minimal test case that actually breaks all the wp-playlist
 functionality in a few lines of code:


 {{{

 <?php
 /*
 Plugin Name: Test
 Description: Example causing WP bug 29383
 Version: 0.1
 */

 add_action( 'wp_print_scripts', 'printstuff' );
 function printstuff() {

 ?><script>
 (function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript';
 ga.async = true;
         ga.src = 'http://anywhere';
         var s = document.getElementsByTagName('script')[0];
 s.parentNode.insertBefore(ga, s);
 })();
 </script>
 <?php

 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29383#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list