I'm not sure how to explain this but the header.php file in my theme keeps changing by itself (or I'm guessing it's being hacked in some way or another.) All the quote marks in code convert to ''' html code and it's only happening in the header.php file in my theme. I have no idea how this is happening. I change the code back and re-upload the file but the code reverts back to ''' after every few hours. So strange!
For example the code should look like this:
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
But then it converts to ''' by itself after few hours later:
<meta http-equiv="Content-Type" content="<?php bloginfo( ''' html_type ''' ); ?>; charset=<?php bloginfo(''' charset ''' ); ?>" />
This then causes a php error - Parse error: syntax error, unexpected ';' in ../wp-content/themes/A/header.php on line 21
My files are set to the correct permissions via FTP.
Please help! Anyone have any ideas why this could be happening?
Thanks in advance.