WordPress.org

Make WordPress Core

Ticket #19576: 19576.2.diff

File 19576.2.diff, 943 bytes (added by mdawaffe, 2 years ago)
  • wp-includes/formatting.php

     
    10121012/** 
    10131013 * Will only balance the tags if forced to and the option is set to balance tags. 
    10141014 * 
    1015  * The option 'use_balanceTags' is used for whether the tags will be balanced. 
    1016  * Both the $force parameter and 'use_balanceTags' option will have to be true 
    1017  * before the tags will be balanced. 
     1015 * The option 'use_balanceTags' is used to determine whether the tags will be balanced. 
    10181016 * 
    10191017 * @since 0.71 
    10201018 * 
    10211019 * @param string $text Text to be balanced 
    1022  * @param bool $force Forces balancing, ignoring the value of the option. Default false. 
     1020 * @param bool $force If true, forces balancing, ignoring the value of the option. Default false. 
    10231021 * @return string Balanced text 
    10241022 */ 
    10251023function balanceTags( $text, $force = false ) {