From d5cf8301751d275ae2a60aae8f6510c8ec237022 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 23 Aug 2011 15:37:38 +0000 Subject: [PATCH] Add 'q' tag to nestable tags list in force_balance_tags(). props solarissmoke, fixes #6870. git-svn-id: http://svn.automattic.com/wordpress/trunk@18585 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 1632cf802..166350b89 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -998,8 +998,8 @@ function force_balance_tags( $text ) { $stacksize = 0; $tagqueue = ''; $newtext = ''; - $single_tags = array('br', 'hr', 'img', 'input'); // Known single-entity/self-closing tags - $nestable_tags = array('blockquote', 'div', 'span'); // Tags that can be immediately nested within themselves + $single_tags = array( 'br', 'hr', 'img', 'input' ); // Known single-entity/self-closing tags + $nestable_tags = array( 'blockquote', 'div', 'span', 'q' ); // Tags that can be immediately nested within themselves // WP bug fix for comments - in case you REALLY meant to type '< !--' $text = str_replace('< !--', '< !--', $text);