Hardcoded column name in query
-
There’s a hardcoded column name in a query in syndicationdataqueries.class.php (on line 97 in version 2012.1218). It currently reads:
$search .= ” AND ({$wpdb->postmeta}.meta_key = ‘”.$query->get(‘meta_key’).”‘ AND wp_postmeta.meta_value = ‘”.$query->get(‘meta_value’).”‘) — ‘”;It should be like this:
$search .= ” AND ({$wpdb->postmeta}.meta_key = ‘”.$query->get(‘meta_key’).”‘ AND {$wpdb->postmeta}.meta_value = ‘”.$query->get(‘meta_value’).”‘) — ‘”;Kind regards
Thomas
- The topic ‘Hardcoded column name in query’ is closed to new replies.