WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#14285 closed defect (bug) (fixed)

Redundant application of 'wptexturize' for 'single_post_title'

Reported by: coffee2code Owned by:
Milestone: 3.1 Priority: normal
Severity: trivial Version: 3.0
Component: Formatting Keywords: has-patch
Focuses: Cc:

Description

In wp-includes/default-filters.php, 'wptexturize' is being applied twice to the 'single_post_title' filter. In one instance (the oldest of the two cases), 'wptexturize' was applied directly and singularly. [13467] changed things to iterate an array of filters (which includes 'single_post_title') to apply 'wptexturize' and 'strip_tags' consistently for them all. However, the actual changeset did not remove the original line.

Looks like in #10900, scribu's original patch removed the line, but the refreshed version of the patch (which was ultimately committed in [13467]) omitted the removal of the line.

Patch is attached.

Attachments (1)

14285.diff (442 bytes) - added by coffee2code 4 years ago.
Patch to remove redundant line.

Download all attachments as: .zip

Change History (3)

coffee2code4 years ago

Patch to remove redundant line.

comment:1 nacin4 years ago

  • Milestone changed from Awaiting Review to 3.1

comment:2 nacin3 years ago

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

(In [15964]) Remove redundant filter. props coffee2code. fixes #14285.

Note: See TracTickets for help on using tickets.