I just tried stevem’s suggestion, and putting back either of the calls to stripslashes individually either fails to fix the extra backslashes in the post title or causes WP to resume its backslash-eating behavior.
Is nobody else seeing this at all? I tried stevem’s second suggestion (correcting the obvious typos in there), and it didn’t help either. Can someone else running 1.2.1 with the backslash-eating fixes done test this? I’m getting the extraneous backslashes if I go back to edit a post. Things work fine when initially making the post, but when the post is loaded to edit, the slashes aren’t stripped out of the Post Title, so if you don’t mannually take them out, they reproduce. Thanks!
Thanks! I added stripslashes to the line
$edited_post_title = format_to_edit($postdata->post_title);
and now everything seems to be working fine. I’m not sure if this is the best option for a permanent fix, of course, as I’m not familiar with WP’s internals. Is there anywhere in particular that I should report this as a bug so that the developers squash it the right way?
Glad it’s working. Basically the fix puts back the stripslashes just for the title that were taken out in format_to_edit.
I would guess that you could report it at Requests and Feedback at http://wordpress.org/support/4
Do put what plugins/hacks you are using as they may be causing the problem.