From 041b5f7af1808074ac401e34f2c7bd9b58005601 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 9 Jul 2012 19:27:44 +0000 Subject: [PATCH] HTML object tags are self-nestable. props coffee2code. fixes #20401. git-svn-id: https://develop.svn.wordpress.org/trunk@21250 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 8505e973f1..bc0ab7bf3f 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1156,7 +1156,7 @@ function force_balance_tags( $text ) { $tagqueue = ''; $newtext = ''; $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 + $nestable_tags = array( 'blockquote', 'div', 'object', 'q', 'span' ); // Tags that can be immediately nested within themselves // WP bug fix for comments - in case you REALLY meant to type '< !--' $text = str_replace('< !--', '< !--', $text);