Docs: Fix an outdated comment.
[38592] changed the functionality of `wpautop()`, but didn't update the associated comment to match. Fixes #4857. Built from https://develop.svn.wordpress.org/trunk@38593 git-svn-id: http://core.svn.wordpress.org/trunk@38536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
109ffb9390
commit
e1d553e20a
|
@ -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)';
|
$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);
|
$pee = preg_replace('!(<' . $allblocks . '[\s/>])!', "\n\n$1", $pee);
|
||||||
|
|
||||||
// Add a double line break below block-level closing tags.
|
// Add a double line break below block-level closing tags.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-alpha-38592';
|
$wp_version = '4.7-alpha-38593';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue