From d1461079608e769b5931f5d1504e993a9d1cee4f Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 3 Dec 2013 17:07:31 +0000 Subject: [PATCH] Revert [26050], stop trying to balance open HTML tags across nextpage and more tags for now. see #6297. git-svn-id: https://develop.svn.wordpress.org/trunk@26557 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index c0e0c81a91..819b0b73fa 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -1237,21 +1237,10 @@ function convert_chars($content, $deprecated = '') { */ function balanceTags( $text, $force = false ) { if ( $force || get_option('use_balanceTags') == 1 ) { - /** - * Filter the list of delimiters to be used before tags are balanced. - * - * @since 3.8.0 - * - * @param array $delimiters An array of delimiters, e.g '', ''. - */ - $balance_tags_delimiters = apply_filters( 'balance_tags_delimiters', array( '', '' ) ); - // Capture lets PREG_SPLIT_DELIM_CAPTURE return the delimiters - $delimiters_regex = '/(' . implode( '|', $balance_tags_delimiters ) . ')/'; - $parts = preg_split( $delimiters_regex, $text, -1, PREG_SPLIT_DELIM_CAPTURE ); - return implode( '', array_map( 'force_balance_tags', $parts ) ); + return force_balance_tags( $text ); + } else { + return $text; } - - return $text; } /**