Ticket #692 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Changed 2 years ago by alexkingorg

  • status changed from new to closed
  • resolution set to fixed

bandaid for google sitemaps compatibility

Note: See TracTickets for help on using tickets.