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

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 26 23:08: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:
------------------------------------------------+--------------------------

Comment (by chipbennett):

 Replying to [comment:62 greenshady]:
 > The big issue with just keeping `wp_title()` is how to handle
 `is_front_page()`.  Currently, `wp_title()` does not output anything for
 the front page.  This has left it up to theme devs to add in something to
 display on the front page, which makes it tough for plugins to filter
 since there's no hook.
 >
 > Changing the function to output something for the front page would
 obviously introduce backwards-compatibility issues.

 What's wrong with Themes using the `wp_title` filter to add content when
 `is_front_page()`?

 But, regardless: either Themes/Plugins can filter `wp_title` to add
 `is_front_page()` content, or the `wp_title()` function can be modified to
 accommodate `is_front_page()` - neither of which requires this patch.

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


More information about the wp-trac mailing list