Ticket #6764 (closed defect: fixed)

Opened 3 months ago

Last modified 2 weeks ago

WPDB SAVEQUERIES unusable by plugins

Reported by: filosofo Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: General Version:
Severity: normal Keywords: SAVEQUERIES wpdb has-patch
Cc: filosofo

Description

Currently, WPDB's SAVEQUERIES constant is defined as "false" when the WPDB class file is included, if it's not already defined. That means that you can't save queries outside of defining SAVEQUERIES in wp-config.php. So plugins, for example, cannot set it to true for troubleshooting purposes.

My patch, instead of defining SAVEQUERIES on load, checks that it's defined at the two spots in which it's used.

Attachments

savequeries_check.diff (0.9 kB) - added by filosofo on 04/17/08 21:37:32.

Change History

04/17/08 21:37:32 changed by filosofo

  • attachment savequeries_check.diff added.

06/20/08 15:17:10 changed by westi

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

(In [8134]) Make the SAVEQUERIES define more flexible. Fixes #6764 props filosofo.