[wp-trac] [WordPress Trac] #33106: Automatic removal of new lines in CDATA blocks may break content with unfiltered_html

WordPress Trac noreply at wordpress.org
Fri Jul 24 19:51:07 UTC 2015


#33106: Automatic removal of new lines in CDATA blocks may break content with
unfiltered_html
-----------------------------+--------------------
 Reporter:  jeremyfelt       |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  highest omg bbq  |   Milestone:  4.2.4
Component:  Formatting       |     Version:  4.2.3
 Severity:  major            |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+--------------------

Comment (by azaozz):

 The autoembed() part of the 33106.5.patch doesn't work here. It replaces
 embeddable URLs that are wrapped in a link. These should not be embedded.
 To reproduce:

 1. Paste this in the Text editor:

 {{{
 <a
 href="https://www.youtube.com/watch?v=BZL3CSUwoTc">https://www.youtube.com/watch?v=BZL3CSUwoTc</a>
 }}}

 2. Preview the post. You should see a link to that video, instead it is
 embedded (and the <a> tag is broken).

 To fix that we either need to revert to removing line breaks in
 autoembed() or do something like 33106.3.patch.

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


More information about the wp-trac mailing list