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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 8 10:56:46 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 jamalorg):

 * cc: jmlworld@… (added)


Comment:

 I'm not sure why we'd add another function into the already bloated core
 when `wp_title()` can exactly do what we need if we use it the correct
 way. I see the whole purpose of introducing this new function is to hard-
 code `<title></title>` tag into the WordPress core, which defeats the
 "separation of design & content" rule.

 Jane's suggestion of introducing an option to set the format of the
 `<title>` tag in Settings would stop people abusing the `wp_title()` tag.
 The lack of standard option to modify the structure of the title tag was
 the first motive of developers abusing the tag.

 Teaching people how to add template tags the correct way would be a better
 idea. Updating the codex and removing themes and plugins abusing the
 system would also encourage theme/plugin developers to correct their
 mistakes.

 `<title>` tag is not content, it's design. The content inside it is the
 content and adding `<title><?php title_tag_function(); ?></title>` in the
 theme's `header.php` is the correct practice, in my opinion.

 WordPress was intended to be simple and flexible, and hardcoding things in
 the `wp_head()` will result developers creating their own
 `correct_wp_head()` because they have an excuse.

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


More information about the wp-trac mailing list