From 5fa36977a0afab730426cac9d6e0b69a40986ec1 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 28 Jul 2014 19:43:06 +0000 Subject: [PATCH] Formatting: no

or
around

$1

\n' ); diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 2a01ea8db2..0f3f93ad23 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -392,6 +392,12 @@ function wpautop($pee, $br = true) { $pee = preg_replace('!()!', "$1\n\n", $pee); $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines + if ( strpos( $pee, '\s|', '', $pee ); + } + if ( strpos( $pee, '' ) !== false ) { // no P/BR around param and embed $pee = preg_replace( '|(]*>)\s*|', '$1', $pee );