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

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 26 21:06:54 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:
------------------------------------------------+--------------------------
Changes (by chipbennett):

 * cc: chip@… (added)


Comment:

 I'm clearly missing something. I don't see any need for a new function
 ''at all''. The `wp_title()` function and `wp_title` filter are fully
 functional. If the problem is developer education, then the solution is
 not to introduce new code into core, but rather to ''educate developers''.

 If there is to be a best-practice implementation of
 `wp_title()`/`wp_title`, then let's revise the Theme Review Guidelines,
 and enforce that implementation for repository-hosted Themes. It would be
 a simple matter to require that Themes not modify `wp_title()` directly in
 the template, but only through the `wp_title` filter.

 But what is currently proposed appears to me to be nothing more than 200
 lines of code to accomplish something that can be done without adding a
 ''single line'' of code.

 As for the assertion that the doctitle content is ''content'' rather than
 ''presentation'': I say that it's just the ''opposite''. The doctitle is
 ''presentation'', rather than ''generation'', of content. Thus, it
 logically may be controlled by the Theme - even if that control needs to
 be standardized, such that the Theme plays nicely with Plugins.

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


More information about the wp-trac mailing list