WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 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)

savequeries_check.diff (872 bytes) - added by filosofo 6 years ago.

Download all attachments as: .zip

Change History (2)

filosofo6 years ago

comment:1 westi6 years ago

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

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

Note: See TracTickets for help on using tickets.