WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18548, comment 5


Ignore:
Timestamp:
08/30/11 20:45:26 (4 years ago)
Author:
nathanrice
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18548, comment 5

    initial v1  
    1 I agree that something needs to be done with this. wp_title is old, ugly, and rather inadequate (as proved by the mess of code used to generate the <title> tag in twentyten/twentyeleven. 
     1I agree that something needs to be done with this. `wp_title` is old, ugly, and rather inadequate (as proved by the mess of code used to generate the `<title>` tag in twentyten/twentyeleven. 
    22 
    3 However, injecting the <title></title> on wp_head seems like the wrong solution. 
     3However, injecting the `<title></title>` on `wp_head` seems like the wrong solution. 
    44 
    5 I would rather see a new function altogether. Something like wp_doctitle(). To me, wp_title() always seemed too generic. 
     5I would rather see a new function altogether. Something like `wp_doctitle()`. To me, `wp_title()` always seemed too generic. 
    66 
    7 The new function could be available to theme developers. It could use the (vastly superior, IMO) $args array, instead of separate parameters, set defaults, output <title></title> tags, do the logic for outputting the title based on what is being browsed, etc. And of course, be fully filterable (early and late). 
     7The new function could be available to theme developers. It could use the (vastly superior, IMO) `$args` array, instead of separate parameters, set defaults, output `<title></title>` tags, do the logic for outputting the title based on what is being browsed, etc. And of course, be fully filterable (early and late).