Add a better option for <title> tags
|Reported by:||joostdevalk||Owned by:||joostdevalk|
Right now, title tags in themes are created by using wp_title and than adding on custom code, usually bloginfo('name'), sometimes other code. Because there's basically no way for a plugin to control the entire content of a title tag, all major SEO plugins resort to output buffering.
A better way would be to output the <title> tag during the run of wp_head, based on whether the current theme has added theme_support. See attached patch for the proposed implementation. This patch also fixes the requested array filter in #17877.
Change History (99)
comment:5 follow-up: ↓ 6 nathanrice — 3 years ago
comment:45 in reply to: ↑ 44 ; follow-up: ↓ 47 joostdevalk — 3 years ago
comment:56 in reply to: ↑ 55 ; follow-up: ↓ 57 jamalorg — 3 years ago
comment:61 in reply to: ↑ 60 johnbillion — 3 years ago
comment:66 in reply to: ↑ 62 emiluzelac — 3 years ago
comment:87 chrisbliss18 — 2 years ago
- Cc gaarai@… added