More specific handling of "comment_ID" badly written from Akismet

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418105 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2011-08-02 00:11:18 +00:00
parent 8781f2aa15
commit 0f00a46d2a

View File

@@ -299,7 +299,8 @@
// Remove illegal characters
$sql = str_replace('`', '', $sql);
// Akismet sometimes doesn't write 'comment_ID' with 'ID' in capitals ...
// Akismet sometimes doesn't write 'comment_ID' with 'ID' in capitals where needed ...
if( false !== strpos( $sql, $table_prefix.'comments'))
$sql = str_replace(' comment_id ', ' comment_ID ', $sql);
// Field names with CAPITALS need special handling