mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-07-30 01:37:13 +02:00
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
|
||||
$sql = str_replace('`', '', $sql);
|
||||
|
||||
// Akismet sometimes doesn't write 'comment_ID' with 'ID' in capitals ...
|
||||
$sql = str_replace(' comment_id ', ' comment_ID ', $sql);
|
||||
// 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
|
||||
if( false !== strpos($sql, 'ID'))
|
||||
|
Reference in New Issue
Block a user