Thread Starter
JDD
(@allaboutmormons)
Thanks for your speedy reply, Chad, and for making a great plugin. It occurred to me after I posted that I should have let you know privately. Feel free to delete this message if you think it’s appropriate, though with the imminent fix perhaps that’s not necessary. All the best.
Thread Starter
JDD
(@allaboutmormons)
A slight improvement to my functions.php fix, in case it’s helpful:
add_action('init', 'sanitize_post_data');
function sanitize_post_data() {
// Go through all most and sanitize it to prevent cross-site scripting attacks.
foreach($_POST as $key=>$val) {
if (!(is_array($val))) {
$_POST[$key] = htmlentities($val);
}
}
}
Prevents occasional PHP errors caused by other plugins/wordpress functions.
Unfortunately, BP moderation doesn’t work for me either using BP 1.7. I click on the flag button, but it doesn’t change to unflag, and the flagged comment doesn’t appear in the admin. Thanks.