#17877 closed enhancement (fixed)
Add a new wp_title_array filter to wp_title
Reported by: | aaroncampbell | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Themes | Keywords: | has-patch commit |
Focuses: | template | Cc: |
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
@
13 years ago
- Component changed from General to Template
- Keywords 3.3-early added
- Type changed from defect (bug) to enhancement
#7
@
13 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
@
12 years ago
17877.2.diff uses wp_title_parts
for the filter name.
#14
@
10 years ago
- Keywords commit added; 3.3-early removed
- Milestone changed from Future Release to 4.0
Low hanging fruit.
Refreshed patch with added filter documentation.
#15
@
10 years ago
The hook docs in 17877.3.diff look good, though I'd prefer to use "page title" instead of "document title".
+1
I can't believe this hasn't been brought up before.