Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#2650 closed defect (bug) (duplicate)

rework balanceTags() so that it doesn't depend on a WP option

Reported by: markjaquith's profile markjaquith Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: General Keywords: balanceTags has-patch
Focuses: Cc:


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.

Attachments (1)

balanceTags.diff (919 bytes) - added by markjaquith 16 years ago.
balanceTags() fix

Download all attachments as: .zip

Change History (3)

16 years ago

balanceTags() fix

#1 @skeltoac
16 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

See #2348 for a related solution.

#2 @Nazgul
15 years ago

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.