Remove unused is_comment param in balanceTags() relates to #2714
git-svn-id: http://svn.automattic.com/wordpress/trunk@4662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f2665b2cb2
commit
6dfff141ec
|
@ -410,6 +410,7 @@ function funky_javascript_fix($text) {
|
||||||
Balances Tags of string using a modified stack.
|
Balances Tags of string using a modified stack.
|
||||||
|
|
||||||
@param text Text to be balanced
|
@param text Text to be balanced
|
||||||
|
@param force Forces balancing, ignoring the value of the option
|
||||||
@return Returns balanced text
|
@return Returns balanced text
|
||||||
@author Leonard Lin (leonard@acm.org)
|
@author Leonard Lin (leonard@acm.org)
|
||||||
@version v1.1
|
@version v1.1
|
||||||
|
@ -418,12 +419,12 @@ function funky_javascript_fix($text) {
|
||||||
@notes
|
@notes
|
||||||
@changelog
|
@changelog
|
||||||
--- Modified by Scott Reilly (coffee2code) 02 Aug 2004
|
--- Modified by Scott Reilly (coffee2code) 02 Aug 2004
|
||||||
1.2 ***TODO*** Make better - change loop condition to $text
|
1.2 ***TODO*** Make better - change loop condition to $text
|
||||||
1.1 Fixed handling of append/stack pop order of end text
|
1.1 Fixed handling of append/stack pop order of end text
|
||||||
Added Cleaning Hooks
|
Added Cleaning Hooks
|
||||||
1.0 First Version
|
1.0 First Version
|
||||||
*/
|
*/
|
||||||
function balanceTags($text, $is_comment = 0, $force = false) {
|
function balanceTags($text, $force = false) {
|
||||||
|
|
||||||
if ( !$force && get_option('use_balanceTags') == 0 )
|
if ( !$force && get_option('use_balanceTags') == 0 )
|
||||||
return $text;
|
return $text;
|
||||||
|
@ -525,7 +526,7 @@ function balanceTags($text, $is_comment = 0, $force = false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function force_balance_tags($text) {
|
function force_balance_tags($text) {
|
||||||
return balanceTags($text, 0, true);
|
return balanceTags($text, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function format_to_edit($content, $richedit = false) {
|
function format_to_edit($content, $richedit = false) {
|
||||||
|
|
Loading…
Reference in New Issue