Ticket #2650: balanceTags.diff
| File balanceTags.diff, 919 bytes (added by markjaquith, 7 years ago) |
|---|
-
wp-includes/functions-formatting.php
383 383 return $text; 384 384 } 385 385 386 function balanceTags($text, $is_comment = 0) { 387 if ( get_options('use_balanceTags') == 0 ) 388 return $text; 389 return wpbalancetags($text, $is_comment); 390 } 391 386 392 /* 387 balanceTags393 wpbalancetags 388 394 389 395 Balances Tags of string using a modified stack. 390 396 … … 402 408 Added Cleaning Hooks 403 409 1.0 First Version 404 410 */ 405 function balanceTags($text, $is_comment = 0) {411 function wpbalancetags($text, $is_comment = 0) { 406 412 407 if ( get_option('use_balanceTags') == 0)408 return $text;409 410 413 $tagstack = array(); $stacksize = 0; $tagqueue = ''; $newtext = ''; 411 414 412 415 # WP bug fix for comments - in case you REALLY meant to type '< !--'
