Make WordPress Core

Changeset 2056


Ignore:
Timestamp:
01/06/2005 10:10:55 AM (21 years ago)
Author:
saxmatt
Message:

Don't muddy <pre> pool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-formatting.php

    r2036 r2056  
    5353function clean_pre($text) {
    5454    $text = str_replace('<br />', '', $text);
     55    $text = str_replace('<p>', "\n", $text);
     56    $text = str_replace('</p>', '', $text);
    5557    return $text;
    5658}
Note: See TracChangeset for help on using the changeset viewer.