Changeset 5262

Show
Ignore:
Timestamp:
04/12/07 23:19:16 (2 years ago)
Author:
rob1n
Message:

Don't treat object and param as block elements in wpautop. fixes #3854

Files:

Legend:

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

    r5261 r5262  
    5656    $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 
    5757    // Space things out a little 
    58     $allblocks = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|map|area|blockquote|address|math|style|object|input|param|p|h[1-6]|hr)'; 
     58    $allblocks = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr)'; 
    5959    $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee); 
    6060    $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);