[wp-trac] [WordPress Trac] #23176: Inserting media with multiple newlines in caption breaks HTML

WordPress Trac noreply at wordpress.org
Fri Jan 11 19:15:10 UTC 2013


#23176: Inserting media with multiple newlines in caption breaks HTML
--------------------------+--------------------
 Reporter:  jonieske      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5.1
Component:  Media         |     Version:  3.5
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by azaozz):

 Replying to [comment:2 SergeyBiryukov]:

 Confirmed too. Perhaps the regex should be:

 {{{
 props.alt.replace( /[\r\n]+/g, ' ' );
 }}}

 so we replace multiple new lines with one space.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23176#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list