WordPress.org

Plugin Directory

popularity-contest

Opened 7 years ago

Closed 7 years ago

#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 Severity: major
Plugin: popularity-contest 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 (1)

comment:1 alexkingorg7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

bandaid for google sitemaps compatibility

Note: See TracTickets for help on using tickets.