Remove WordPress version tag from header
WordpressSince version 2.5 WordPress inserts the version meta tag <meta name=”generator” content=”WordPress 2.5″ /> automatically without you having the possibility to remove it from the header file. WordPress now uses <?php wp_head(); ?> a function that if you remove you’re removing more than just the wordpress version. So the solution is to add something to your themes functions.php file.
Place this code: remove_action('wp_head', 'wp_generator'); right before the closing php tag ?> . Now check your source code, the wordpress version is not disclosed any more.
Monday, November 10th, 2008 at 7:09 pm and is filed under Wordpress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
[...] Source [...]