[wp-trac] [WordPress Trac] #18548: Add a better option for <title> tags

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 27 00:00:34 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 nacin):

 Replying to [comment:78 chipbennett]:
 > By all means, correct me if my inference here is incorrect, but IMHO
 this sounds like an effort to discourage - if not prevent (as I suspect
 Plugin developers would prefer) - Theme developers from modifying the
 doctitle content.

 Correct.

 They would be able to pass defaults through the add_theme_support() call,
 and I imagine these default settings would be akin to what power they're
 normally given in wp_title(). Additionally, there would be filters in this
 new callback, though I'd hesitate to suggest a theme should use it.

 Point is, themes shouldn't be dealing with the content of a title tag.
 It's exactly that: content. Not presentation.

 The biggest problem right now is a theme can optionally take absolute
 control over what appears in the title by avoiding wp_title() all
 together. We'd rather force our own <title> tag to ensure that a user or
 plugin can equally make modifications. It's not that a theme would lose
 all power, it's that they would be on equal footing. It's the same idea as
 `wp_title('')` but wp_title() is crap, our own default themes even want
 something better, we can't change it without breaking old themes, and we
 will need the add_theme_support() registration in order to show a user
 interface in the admin.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18548#comment:79>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list