Ticket #692 (closed defect: fixed)
Use $wpdb->get_results instead of mysql_query or specify the DB connection
| Reported by: | arnee | Owned by: | alexkingorg |
|---|---|---|---|
| Priority: | normal | Component: | popularity-contest |
| Severity: | major | Keywords: | |
| Cc: |
Description
On some places in the plugin, mysql_query is used instead of the WordPress DB class. This leads to errors with new 3.0 version of the Google Sitemaps plugin, which opens a new DB connection to read out the posts with unbuffered results. mysql_query just uses the last used connection instead of the correct one from WordPress.
Solution: Use $wpdb->query() or specify the connection with mysql_query("SELECT...",$wpdb->dbh);
Change History
Note: See
TracTickets for help on using
tickets.
