[wp-trac] [WordPress Trac] #18548: Add a better option for <title> tags
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 26 23:37:31 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:64 scribu]:
> > Themes/Plugins can filter wp_title to add is_front_page() content
>
> Yes, themes could do that all along, except they don't.
>
So, is it ''really'' preferable to introduce 200 lines of code, a new
template tag, and a new `add_theme_support()` call, instead of simply
educating Theme developers on the best practice for modifying doctitle
content?
How is it going to be any easier to educate Theme developers to use a new
template tag (''plus'' add a new `add_theme_support()` call), instead of
just educating Theme developers to filter `wp_title` instead of passing a
string directly to `wp_title()`?
Personally, as a member of the team that will largely be tasked with the
education/enforcement of whatever implementation method is ultimately
chosen, I think getting Theme developers to use existing code is going to
be ''much'' easier than trying to get them to use a new template tag.
The past of least resistance (and fastest adoption) is going to be to say,
"move your `wp_title()`-filtering code out of `header.php`, wrap it in a
function in `functions.php`, and hook it into `add_filter( 'wp_title',
'themename_filter_wp_title' )`".
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18548#comment:70>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list