Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#21068 closed defect (bug) (invalid)

deprecate balanceTags

Reported by: c3mdigital Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch
Focuses: Cc:


The balanceTags function is not used anywhere in core and I doubt any themes or plugins are using it. Even though it is very nostalgic it doesn't follow the WordPress function naming convention and is there a case for leaving un used code in core?

Attachments (1)

21068.diff (1.7 KB) - added by c3mdigital 6 years ago.

Download all attachments as: .zip

Change History (4)

#1 @nacin
6 years ago


// Places to balance tags on input
foreach ( array( 'content_save_pre', 'excerpt_save_pre', 'comment_save_pre', 'pre_comment_content' ) as $filter ) {
	add_filter( $filter, 'balanceTags', 50 );

6 years ago

#2 @c3mdigital
6 years ago

Thanks. My editor search did not pick that up.

#3 @SergeyBiryukov
6 years ago

  • Component changed from General to Formatting
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.