Div balance across more. Props skeltoac. fixes #2348

git-svn-id: https://develop.svn.wordpress.org/trunk@3751 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-04-25 08:46:19 +00:00
parent aa850594af
commit d983d337d4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -404,9 +404,9 @@ function funky_javascript_fix($text) {
Added Cleaning Hooks
1.0 First Version
*/
function balanceTags($text, $is_comment = 0) {
function balanceTags($text, $is_comment = 0, $force = false) {
if ( get_option('use_balanceTags') == 0)
if ( !$force && get_option('use_balanceTags') == 0 )
return $text;
$tagstack = array(); $stacksize = 0; $tagqueue = ''; $newtext = '';