mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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:
parent
a0c84bc523
commit
9b347300e5
@ -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.
|
* Balances tags if forced to, or if the 'use_balanceTags' option is set to true.
|
||||||
*
|
|
||||||
* The option 'use_balanceTags' is used to determine whether the tags will be balanced.
|
|
||||||
*
|
*
|
||||||
* @since 0.71
|
* @since 0.71
|
||||||
*
|
*
|
||||||
@ -1171,9 +1169,10 @@ function convert_chars($content, $deprecated = '') {
|
|||||||
* @return string Balanced text
|
* @return string Balanced text
|
||||||
*/
|
*/
|
||||||
function balanceTags( $text, $force = false ) {
|
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 $text;
|
||||||
return force_balance_tags( $text );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user