WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#10900 closed defect (bug) (fixed)

Consistent filters for single_*_title()

Reported by: scribu Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9
Component: Formatting Keywords: has-patch commit early
Focuses: Cc:

Description

In WP 2.9-rare, single_tag_title() doesn't have strip_tags() applied to it, while single_cat_title() and single_post_title() do.

Additionally, single_post_title() also has wptexturize() applied.

This should be fixed.

Attachments (2)

general-template.php.diff (2.0 KB) - added by scribu 6 years ago.
general-template.php.2.diff (1.7 KB) - added by scribu 5 years ago.
refresh

Download all attachments as: .zip

Change History (8)

comment:1 @ryan6 years ago

  • Keywords early added
  • Milestone changed from 2.9 to 3.0

Looks good but lets save for early 3.0.

comment:2 @scribu5 years ago

  • Keywords commit added

comment:3 @nacin5 years ago

Patch is stale. Otherwise looks good.

comment:4 @scribu5 years ago

  • Keywords needs-patch added; has-patch commit removed

@scribu5 years ago

refresh

comment:5 @scribu5 years ago

  • Keywords has-patch commit added; needs-patch removed

comment:6 @nacin5 years ago

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

(In [13467]) Standardize filters for single_(post|cat|tag|month)_title() on strip_tags() and wptexturize(). fixes #10900 props scribu

Note: See TracTickets for help on using tickets.