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:
@@ -299,8 +299,9 @@
|
|||||||
// Remove illegal characters
|
// Remove illegal characters
|
||||||
$sql = str_replace('`', '', $sql);
|
$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 ...
|
||||||
$sql = str_replace(' comment_id ', ' comment_ID ', $sql);
|
if( false !== strpos( $sql, $table_prefix.'comments'))
|
||||||
|
$sql = str_replace(' comment_id ', ' comment_ID ', $sql);
|
||||||
|
|
||||||
// Field names with CAPITALS need special handling
|
// Field names with CAPITALS need special handling
|
||||||
if( false !== strpos($sql, 'ID'))
|
if( false !== strpos($sql, 'ID'))
|
||||||
|
Reference in New Issue
Block a user