[wp-trac] [WordPress Trac] #12115: Viddler embeds broken by wpautop() due to line breaks

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 4 03:20:04 UTC 2010


#12115: Viddler embeds broken by wpautop() due to line breaks
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  high          |   Milestone:  2.9.3    
Component:  Embeds        |     Version:  2.9.1    
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  has-patch commit => has-patch


Comment:

 if we decide to keep the regexp, it should at least be fixed, e.g.

 {{{
 $domains = array('foo.com', 'bar.com');
 $domains = implode('|', array_map('preg_quote', $domains));
 if ( preg_match( "#^https?://(?:www\.)?(?:$domains)/#i", ...
 }}}

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


More information about the wp-trac mailing list