WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 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:

Description

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 3 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 @nacin3 years ago

wp-includes/default-filters.php:

// 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 );
}

@c3mdigital3 years ago

comment:2 @c3mdigital3 years ago

Thanks. My editor search did not pick that up.

comment:3 @SergeyBiryukov3 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.