fixed error editing comments in WordPress

I had some links to my site in comments using the old permalinks format and I decided to update them to the new format. When I tried however, I got a MySQL error. I looked on WordPress Support and found the issue but no one had provided a fix. Here’s one that worked for me.

Add the following line:

$content = $wpdb->escape($content);

right below line 694, which should be

$content = format_to_post($content);

in WordPress version 1.2 in wordpress/wp-admin/post.php

I posted a response there as well but wanted to help people to avoid the frustration of not being able to edit comments.







Post a comment










Number of readers
- home
comics
news links
other links

about me
blog archives
docs
entertainment
experiences
funny lists
humor
intellectual
interests
metafilter
music
opinions
photos
web designs
tools
software
webmaster help

Sign up
Enter your email address to be notified of new posts



Search blog archives

Calendar
October 2004
S M T W T F S
« Sep   Nov »
 12
3456789
10111213141516
17181920212223
24252627282930
31  







Random quote
(View all quotes)
"A man usually falls in love with a woman who asks the kinds of questions he is able to answer. -- Ronald Colman"










(?) Choose theme:  X X X X X X