[wp-trac] Re: [WordPress Trac] #4626: balanceTags() should not be option dependent

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 13 00:33:28 GMT 2007


#4626: balanceTags() should not be option dependent
----------------------------+-----------------------------------------------
 Reporter:  mdawaffe        |        Owner:  anonymous  
     Type:  defect          |       Status:  new        
 Priority:  normal          |    Milestone:  2.3 (trunk)
Component:  Administration  |      Version:  2.2.1      
 Severity:  normal          |   Resolution:             
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by mdawaffe):

 To be backward compatible, we could do essentially what #2650 suggested:

 {{{
 function balanceTags( $text, $force = false ) {
     if ( !$force && get_option('use_balanceTags') == 0 )
         return $text;
     return force_balance_tags( $text );
 }

 function force_balance_tags( $text ) {
     // old balanceTags code without option check
 }
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4626#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list