#17877 closed enhancement (fixed)
Add a new wp_title_array filter to wp_title
| Reported by: | aaroncampbell | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Themes | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | template |
Description
It would be awesome to have a filter in wp_title() that would let you filter the array. Right now if any part of the title contains the title separator you can't tell what is a separator and what isn't using the wp_title filter. Additionally if we make the array filterable you could add additional parts to it without worrying about rtl vs ltr.
Attachments (3)
Change History (20)
#2
@
15 years ago
- Component General → Template
- Keywords 3.3-early added
- Type defect (bug) → enhancement
#7
@
15 years ago
Well, since #18548 doesn't actually affect wp_title we could still do this, but honestly if that one goes in I won't care about this one anymore since I'll be switching to the new way :)
#9
@
14 years ago
17877.2.diff uses wp_title_parts for the filter name.
#14
@
12 years ago
- Keywords commit added; 3.3-early removed
- Milestone Future Release → 4.0
Low hanging fruit.
Refreshed patch with added filter documentation.
#15
@
12 years ago
The hook docs in 17877.3.diff look good, though I'd prefer to use "page title" instead of "document title".
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
+1
I can't believe this hasn't been brought up before.