Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Installing & running WordPress (http://forum.bytesforall.com/forumdisplay.php?f=6)
-   -   Security concern: removing WP version from meta tag (http://forum.bytesforall.com/showthread.php?t=3357)

paulae Sep 9, 2009 10:36 AM

Security concern: removing WP version from meta tag
 
I had a horrible time when I tried to upgrade from WP 2.7.1 to 2.8.4, and have now rolled back to 2.7.1. I know I have to upgrade because of security problems....many sites have been hacked. I'm going to try again, or wait for help. But in the meantime, I want to remove the version number from the meta generator tag. How can I do that?

I tried the wp-security plugin, which removes that tag for you, but it seems to conflict with another plugin I need, Featured Content Gallery.

Flynn Sep 15, 2009 05:01 PM

Add this to somewhere towards the end of Atahualpa's functions.php

PHP Code:

remove_action('wp_head''wp_generator'); 


paulae Sep 16, 2009 07:54 AM

Thanks. I realized I had to enclose it in PHP tags, right? Seems to be working.

Flynn Sep 16, 2009 12:41 PM

If you put it somewhere between existing PHP tags <?php ... ?> then you wouldn't need to wrap them but if you add it somewhere outside of PHP tags, then you'd need to add them. If it works then it's alright

Abbala21 Dec 10, 2009 12:20 AM

Thank you. I just tried it and it works fine for me.


All times are GMT -6. The time now is 11:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.