WordPress.org

Make WordPress Core

Changeset 38593


Ignore:
Timestamp:
09/13/16 04:00:31 (8 months ago)
Author:
pento
Message:

Docs: Fix an outdated comment.

[38592] changed the functionality of wpautop(), but didn't update the associated comment to match.

Fixes #4857.

File:
1 edited

Legend:

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

    r38592 r38593  
    469469    $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; 
    470470 
    471     // Add a single line break above block-level opening tags. 
     471    // Add a double line break above block-level opening tags. 
    472472    $pee = preg_replace('!(<' . $allblocks . '[\s/>])!', "\n\n$1", $pee); 
    473473 
Note: See TracChangeset for help on using the changeset viewer.