WordPress 3.6: Fixing wpdb::escape Deprecation Errors

WordPress v3.6 was recently released, and as such, not all themes and plugins have been updated to support the new version. If you see an error regarding wpdb::escape, here’s the cause and fix for the issue.