Changeset 23368
- Timestamp:
- 02/01/2013 10:20:06 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r23365 r23368 1161 1161 1162 1162 /** 1163 * Will only balance the tags if forced to and the option is set to balance tags. 1164 * 1165 * The option 'use_balanceTags' is used to determine whether the tags will be balanced. 1163 * Balances tags if forced to, or if the 'use_balanceTags' option is set to true. 1166 1164 * 1167 1165 * @since 0.71 … … 1172 1170 */ 1173 1171 function balanceTags( $text, $force = false ) { 1174 if ( !$force && get_option('use_balanceTags') == 0 ) 1172 if ( $force || get_option('use_balanceTags') == 1 ) 1173 return force_balance_tags( $text ); 1174 else 1175 1175 return $text; 1176 return force_balance_tags( $text );1177 1176 } 1178 1177
Note: See TracChangeset
for help on using the changeset viewer.