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
This commit is contained in:
parent
6cc01f0113
commit
041b5f7af1
|
@ -1156,7 +1156,7 @@ function force_balance_tags( $text ) {
|
||||||
$tagqueue = '';
|
$tagqueue = '';
|
||||||
$newtext = '';
|
$newtext = '';
|
||||||
$single_tags = array( 'br', 'hr', 'img', 'input' ); // Known single-entity/self-closing tags
|
$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 '< !--'
|
// WP bug fix for comments - in case you REALLY meant to type '< !--'
|
||||||
$text = str_replace('< !--', '< !--', $text);
|
$text = str_replace('< !--', '< !--', $text);
|
||||||
|
|
Loading…
Reference in New Issue