#2254 closed defect (bug) (wontfix)
single_post_title filtering
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.0 |
| Severity: | normal | Keywords: | has-patch |
| 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)
comment:1
davidhouse — 7 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.
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.
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