Correct the documentation for balanceTags(). Remove unnecessary boolean inversion. props TobiasBg. fixes #22537.

git-svn-id: http://core.svn.wordpress.org/trunk@23368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-02-01 22:20:06 +00:00
parent a0c84bc523
commit 9b347300e5
1 changed files with 4 additions and 5 deletions

View File

@ -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 );
}
/**