[wp-trac] [WordPress Trac] #33106: Removal of newlines in CDATA breaks inline scripts

WordPress Trac noreply at wordpress.org
Tue Jul 28 21:04:19 UTC 2015


#33106: Removal of newlines in CDATA breaks inline scripts
-----------------------------+--------------------------
 Reporter:  jeremyfelt       |       Owner:  miqrogroove
     Type:  defect (bug)     |      Status:  assigned
 Priority:  highest omg bbq  |   Milestone:  4.2.4
Component:  Formatting       |     Version:  4.2.3
 Severity:  major            |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+--------------------------

Comment (by millertimesites):

 Looks like this problem with 4.2.3 is affect all Google Adsense code.
 If the code below was my prior code, what should I change it to in order
 to get it working again?


 {{{
 <script src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
 async=""></script><!-- 336x280 Content --> <ins class="adsbygoogle"
 style="display: inline; float: left; margin: 5px; width: 336px; height:
 280px;" data-ad-client="ca-pub-3788205869703165" data-ad-
 slot="5395550042"></ins><script>// <![CDATA[
 (adsbygoogle = window.adsbygoogle || []).push({});
 // ]]></script>


 }}}

 Thanks

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


More information about the wp-trac mailing list