Opened 16 years ago
Closed 16 years ago
#6764 closed defect (bug) (fixed)
WPDB SAVEQUERIES unusable by plugins
Reported by: | filosofo | Owned by: | |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | SAVEQUERIES wpdb has-patch |
Focuses: | Cc: |
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 (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [8134]) Make the SAVEQUERIES define more flexible. Fixes #6764 props filosofo.