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

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 30 21:27:07 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 ldebrouwer):

 Maybe you should add an option $echo to the function
 _wp_render_title_tag() that defaults to true. Setting it to false would
 allow devs to call the function and to let it return the value without the
 title tags. Obviously the filter 'wp_title_tag_array' allows for further
 manipulation of the title but maybe some devs would like to be able to use
 the page title elsewhere on the page as well ( without having to mimic the
 base functionality ).

 I know that maybe the function name doesn't make too much sense anymore in
 that case but if we were to seperate the actual 'rendering' from the
 'wrapping' in title tags that issue would be solved as well.

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


More information about the wp-trac mailing list