blog was down
Wednesday, March 23rd, 2005Yesterday evening, trying to write the previous post, I found that my blog isn’t working. It’s the third computer failire in the last days (here are the first one and the second one). Have I bad carma?
Yesterday evening, trying to write the previous post, I found that my blog isn’t working. It’s the third computer failire in the last days (here are the first one and the second one). Have I bad carma?
WordPress (this blog engine) changes quotes (”) to (\”). Let see if
php_flag magic_quotes_gpc off php_flag magic_quotes_runtime off
have fixed the problem.
Update: good, it seems so.
————–
Updated, 10 March
Unfortunately, it doesn’t help. For some reason, quotes inside the “pre” tag get a backslash. And quotes in text are smart. I hate it!
————-
Updated, 12 March
Finally fixed by hacking the code. I’ve commented out smart quotes stuff and corrected the following line in “wp-includes/functions-formatting.php”:
$pee = preg_replace('!(<pre.*?>)(.*?)</pre>!ise',
" stripslashes('$1') . clean_pre('$2') . '</pre>' ", $pee);
I changed
clean_pre('$2')
to
clean_pre(stripslashes('$2'))