WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/21/2007 01:50:27 AM (15 years ago)
Author:
ryan
Message:

Don't br image maps. Props rob1n. fixes #1292

File:
1 edited

Legend:

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

    r4894 r4900  
    5757    $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
    5858    // Space things out a little
    59     $allblocks = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|style|script|object|input|param|p|h[1-6])';
     59    $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|script|object|input|param|p|h[1-6])';
    6060    $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
    6161    $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
Note: See TracChangeset for help on using the changeset viewer.