[wp-trac] [WordPress Trac] #4626: balanceTags() should not be
option dependent
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 12 23:57:23 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 | Keywords:
----------------------------+-----------------------------------------------
As a formatting function, {{{balanceTags()}}} should do just that -
balance the tags. It's behavior should not depend on the
{{{use_balanceTags}}} option. Whether the function is *called* should
depend on the option.
Attached:
1. makes {{{balanceTags()}}} option agnostic
2. deprecates {{{force_balance_tags()}}}
3. creates {{{wp_balance_tags()}}} which calls {{{balanceTags()}}}
depending on the {{{use_balanceTags}}} option.
#2650 suggested the same and offered a patch that maintained backward
compatibility. This patch is cleaner but breaks backward compatibility
for some plugins. The older ticket was rejected, but I think the idea
should be reconsidered (hence this ticket).
--
Ticket URL: <http://trac.wordpress.org/ticket/4626>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list