Better lowercasing
Add stripslashes to new document $_POST data

This prevents slashes from being added to the database, and further fixes issues some are seeing in the forums
Better value checks
Improve check for bp_addthis plugin

Use function_exists rather than loading another file to get access to one function
Use checked helper function
$_POST sanitization audit