#2254 closed defect (bug) (wontfix)
single_post_title filtering
Reported by: | fredcz | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
could change this code:
if (is_single() || is_page()) { $title = strip_tags( $posts[0]->post_title ); $title = apply_filters('single_post_title', $title); }
in template-functions-general.php to:
if (is_single() || is_page()) { $title = $posts[0]->post_title; $title = apply_filters('single_post_title', $title); $title = strip_tags($title); }
Some plugins (such as Polyglot) need tags in the title for filtering.
More info: http://fredfred.net/skriker/index.php/polyglot/
Attachments (1)
Change History (5)
#1
@
18 years ago
- Keywords bg|has-patch added
Would this break any plugins? It shouldn't, as we don't allow tags in titles by default, so plugins shouldn't rely on it.
#2
@
18 years ago
I just think that you should pass raw title for filtering, that's all. New version of Polyglot doesn't need tags anymore and is using [lang_xx]lang_xx instead.
Note: See
TracTickets for help on using
tickets.
suggested fix