Make WordPress Core

Changeset 4553


Ignore:
Timestamp:
11/30/2006 02:00:40 AM (18 years ago)
Author:
ryan
Message:

Spare input, param, and script from autop. fixes #3054

File:
1 edited

Legend:

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

    r4511 r4553  
    5757    $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
    5858    // Space things out a little
    59     $pee = preg_replace('!(<(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6])[^>]*>)!', "\n$1", $pee);
    60     $pee = preg_replace('!(</(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6])>)!', "$1\n\n", $pee);
     59    $pee = preg_replace('!(<(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|input|param|script)[^>]*>)!', "\n$1", $pee);
     60    $pee = preg_replace('!(</(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|input|param|script)>)!', "$1\n\n", $pee);
    6161    $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines
    6262    $pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
Note: See TracChangeset for help on using the changeset viewer.