﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
4803,WordPress should be inserting its generator tag via the wp_head hook,JeremyVisser,westi,"This is a legacy behaviour carried on from the dark ages of WordPress:

{{{
<meta name=""generator"" content=""WordPress <?php bloginfo('version'); ?>"" /> <!-- leave this for stats -->
}}}

...which is included in every {{{header.php}}} of every WordPress theme in every WordPress blog.

Don't you think a hook could be used instead?

{{{
function wp_vanity() {
    ?><meta name=""generator"" content=""WordPress <?php bloginfo('version'); ?>"" /> <!-- leave this for stats --><?php
}

add_action('wp_head', 'wp_vanity');
add_action('admin_head', 'wp_vanity');
}}}

I realise it might be a bit impractical, seeing as though doing it, and loading up an old theme would result in duplicate tags, but does everyone agree it's more 'elegant'?",enhancement,closed,low,2.5,Template,2.3,trivial,fixed,has-patch 2nd-opinion,
