Changes between Initial Version and Version 1 of Ticket #18548, comment 5
- Timestamp:
- 08/30/2011 08:45:26 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18548, comment 5
initial v1 1 I agree that something needs to be done with this. wp_title is old, ugly, and rather inadequate (as proved by the mess of code used to generate the <title>tag in twentyten/twentyeleven.1 I agree that something needs to be done with this. `wp_title` is old, ugly, and rather inadequate (as proved by the mess of code used to generate the `<title>` tag in twentyten/twentyeleven. 2 2 3 However, injecting the <title></title> on wp_headseems like the wrong solution.3 However, injecting the `<title></title>` on `wp_head` seems like the wrong solution. 4 4 5 I would rather see a new function altogether. Something like wp_doctitle(). To me, wp_title()always seemed too generic.5 I would rather see a new function altogether. Something like `wp_doctitle()`. To me, `wp_title()` always seemed too generic. 6 6 7 The new function could be available to theme developers. It could use the (vastly superior, IMO) $args array, instead of separate parameters, set defaults, output <title></title>tags, do the logic for outputting the title based on what is being browsed, etc. And of course, be fully filterable (early and late).7 The new function could be available to theme developers. It could use the (vastly superior, IMO) `$args` array, instead of separate parameters, set defaults, output `<title></title>` tags, do the logic for outputting the title based on what is being browsed, etc. And of course, be fully filterable (early and late).