From 52c566f5dc893681929d2792d4437b0c85c6a61d Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 13 Sep 2016 04:00:31 +0000 Subject: [PATCH] Docs: Fix an outdated comment. [38592] changed the functionality of `wpautop()`, but didn't update the associated comment to match. Fixes #4857. git-svn-id: https://develop.svn.wordpress.org/trunk@38593 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index ddce906aa6..1cd0cf75c9 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -468,7 +468,7 @@ function wpautop( $pee, $br = true ) { $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)'; - // Add a single line break above block-level opening tags. + // Add a double line break above block-level opening tags. $pee = preg_replace('!(<' . $allblocks . '[\s/>])!', "\n\n$1", $pee); // Add a double line break below block-level closing tags.