[wp-trac] [WordPress Trac] #18548: Add a better option for <title> tags
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 30 20:44:05 UTC 2011
#18548: Add a better option for <title> tags
------------------------------------------------+--------------------------
Reporter: joostdevalk | Owner: joostdevalk
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Template | Review
Severity: normal | Version: 3.3
Keywords: has-patch dev-feedback needs-codex | Resolution:
------------------------------------------------+--------------------------
Comment (by nathanrice):
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.
However, injecting the <title></title> on wp_head seems like the wrong
solution.
I would rather see a new function altogether. Something like
wp_doctitle(). To me, wp_title() always seemed too generic.
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).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18548#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list