How to Fix the Democracy Plugin n Problem
Posted by Ken Cheung on Thursday, February 12, 2009 in How-to : : 3 commentsI noticed during a recent WordPress upgrade, the Democracy Plugin started adding an extra "n" each time you saved the post:

Here's how to fix the problem:
(1) With a text editor, open "democracy.php" – it's located in the democracy subfolder in the plugin folder.
(2) Locate the line below (around line number 331):
return preg_replace('/{democracy[\w\W\s^}]*?}/', '\n<div>\\0</div>', $content);
(3) Change the last set of single quotes into double quotes:
return preg_replace('/{democracy[\w\W\s^}]*?}/', "\n<div>\\0</div>", $content);
That's it. That should take care of the Democracy Plugin's extra n problem.
Thanks!
Calvin’s last blog post..Dopod 838PRO + HSDPA+ iPod touch = Multimedia everywhere?
I have been trying to fix this all day. my code doesnt have that return preg_replace line in it anywhere ??? weird!
nevermind Im a moron!