[wp-trac] [WordPress Trac] #2650: rework balanceTags() so that it doesn't depend on a WP option

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 8 18:21:01 GMT 2006


#2650: rework balanceTags() so that it doesn't depend on a WP option
-----------------------+----------------------------------------------------
       Id:  2650       |      Status:  new                     
Component:  General    |    Modified:  Sat Apr  8 18:21:01 2006
 Severity:  normal     |   Milestone:  2.1                     
 Priority:  normal     |     Version:  2.1                     
    Owner:  anonymous  |    Reporter:  markjaquith             
-----------------------+----------------------------------------------------
 balanceTags() short-circuits and returns the text passed to it if the
 use_balanceTags option is turned off.  This fix renames balanceTags() to
 wpbalancetags() and creates a new function with the old name of
 balanceTags() that performs the check, for full backwards compat.  The new
 wpbalancetags() can now be used by plugins without having to turn the
 option on.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2650>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list