From 691ffce0199d8fdd7360e9ef944407e7729e7df6 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 28 Jun 2019 07:16:56 +0000 Subject: [PATCH] Formatting: Add correct `

` tags near `


` tags. It can be tricky to know when `wpautop()` should add `

` tags, but one thing we can be certain about is that they really shouldn't be anywhere near `


` tags. Now they aren't. Props solarissmoke, MattyRob, pento. Fixes #14674. Built from https://develop.svn.wordpress.org/trunk@45574 git-svn-id: http://core.svn.wordpress.org/trunk@45385 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 335a7cbc37..1231ce44c2 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -500,6 +500,9 @@ function wpautop( $pee, $br = true ) { // Add a double line break below block-level closing tags. $pee = preg_replace( '!()!', "$1\n\n", $pee ); + // Add a double line break after hr tags, which are self closing. + $pee = preg_replace( '!()!', "$1\n\n", $pee ); + // Standardize newline characters to "\n". $pee = str_replace( array( "\r\n", "\r" ), "\n", $pee ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 801b0fab0b..04e8a4c5e4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45573'; +$wp_version = '5.3-alpha-45574'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.