Opened 4 years ago

Closed 3 years ago

#10900 closed defect (bug) (fixed)

Consistent filters for single_*_title()

Reported by: scribu Owned by:
Priority: normal Milestone: 3.0
Component: Formatting Version: 2.9
Severity: normal Keywords: has-patch commit early
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 4 years ago.
general-template.php.2.diff (1.7 KB) - added by scribu 3 years ago.
refresh

Download all attachments as: .zip

Change History (8)

scribu4 years ago

comment:1   ryan3 years ago

  • Keywords early added
  • Milestone changed from 2.9 to 3.0

Looks good but lets save for early 3.0.

  • Keywords commit added

Patch is stale. Otherwise looks good.

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

scribu3 years ago

refresh

  • Keywords has-patch commit added; needs-patch removed
  • 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.