Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#2650 closed defect (bug) (duplicate)

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

Reported by: 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 8 years ago.
balanceTags() fix

Download all attachments as: .zip

Change History (3)

markjaquith8 years ago

balanceTags() fix

comment:1 skeltoac8 years ago

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

See #2348 for a related solution.

comment:2 Nazgul7 years ago

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