WordPress doubling apostrophes
I noticed that I experience doubling apostrophes on my certain blogs. After I researched this I concluded that doubling apostrophes is only happening on WordPress blog located on same server. After further researching I concluded that Magic Quotes are causing this.
So problem is not WordPress related but server related, and magic quotes are something normally turned on shared hostings because of security issues. In new versions of PHP magic quotes will not exists anymore.
Luckily we can disable the magic quotes on one of the following ways. If you are running SUexec you would need to edit php.ini and if your host don’t have SUexec running then you can probably turn of by adding certain values to your .htaccess file.
.htaccess turning of is easy. Just open your .htaccess and add the following line
php_flag magic_quotes_gpc off
save the file and voila everything works. However on certain host this will not work and you will get the server error. Solution is to edit php.ini, and since you are on shared hosting you can’t do that, so you will create the php.ini file with the following line.
magic_quotes_gpc = Off
Now save the file and copy it to all folders that use php scripts. It’s a lot of job but once you finish it your posts and apostrophes will stop doubling.
Now I need to deploy this on this blog too
.

