Correct the documentation for balanceTags(). Remove unnecessary boolean inversion. props TobiasBg. fixes #22537.
git-svn-id: https://develop.svn.wordpress.org/trunk@23368 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
35453dc623
commit
ce72d762f8
@ -1160,9 +1160,7 @@ function convert_chars($content, $deprecated = '') {
|
||||
}
|
||||
|
||||
/**
|
||||
* Will only balance the tags if forced to and the option is set to balance tags.
|
||||
*
|
||||
* The option 'use_balanceTags' is used to determine whether the tags will be balanced.
|
||||
* Balances tags if forced to, or if the 'use_balanceTags' option is set to true.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
@ -1171,9 +1169,10 @@ function convert_chars($content, $deprecated = '') {
|
||||
* @return string Balanced text
|
||||
*/
|
||||
function balanceTags( $text, $force = false ) {
|
||||
if ( !$force && get_option('use_balanceTags') == 0 )
|
||||
if ( $force || get_option('use_balanceTags') == 1 )
|
||||
return force_balance_tags( $text );
|
||||
else
|
||||
return $text;
|
||||
return force_balance_tags( $text );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user