Opened 13 years ago
Closed 13 years ago
#23774 closed defect (bug) (fixed)
Twenty Ten/Eleven: Use a filter to modify the output of wp_title()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.6 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Bundled Theme | Keywords: | |
| Focuses: | Cc: |
Description
This will help to clean up header.php as well as make the first two Twenty themes more compatible with the WPTRT guidelines:
Themes are required to modify output via filter (wp_title/body_class/post_class)
See twentytwelve_wp_title() in Twenty Twelve for example code.
Attachments (1)
Change History (6)
#3
@
13 years ago
- Owner set to lancewillett
- Resolution set to fixed
- Status changed from new to closed
In 23719:
#4
@
13 years ago
- Keywords has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
Bad news bears. :(
This change isn't backward compatible with child themes. If a child theme creates its own header.php template file, the title can be duplicated or worse.
We'll need to revert.
Twenty Twelve and onward should be fine since they shipped with the filter from the beginning.
Note: See
TracTickets for help on using
tickets.
In 23718: