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

WordPress Trac noreply at wordpress.org
Tue Jul 28 21:43:54 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):

 I tried that by changing


 {{{
 <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>
 }}}

 to

 {{{
 <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>
 }}}

 and it didn't fix anything.
 I assume that the 1,000 of us using AdSense on WordPress should just stand
 pat and deal with it until whenever a patch is installed?

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


More information about the wp-trac mailing list