Make WordPress Core

Changeset 20409


Ignore:
Timestamp:
04/09/2012 08:05:47 PM (13 years ago)
Author:
markjaquith
Message:

Replace <br/> and <br> in addition to <br /> in clean_pre(). fixes #20400

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r20307 r20409  
    30033003        $text = $matches;
    30043004
    3005     $text = str_replace('<br />', '', $text);
     3005    $text = str_replace(array('<br />', '<br/>', '<br>'), array('', '', ''), $text);
    30063006    $text = str_replace('<p>', "\n", $text);
    30073007    $text = str_replace('</p>', '', $text);
Note: See TracChangeset for help on using the changeset viewer.