[wp-trac] [WordPress Trac] #6764: WPDB SAVEQUERIES unusable by plugins

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 17 21:37:08 GMT 2008


#6764: WPDB SAVEQUERIES unusable by plugins
----------------------+-----------------------------------------------------
 Reporter:  filosofo  |       Owner:  anonymous                 
     Type:  defect    |      Status:  new                       
 Priority:  normal    |   Milestone:  2.6                       
Component:  General   |     Version:                            
 Severity:  normal    |    Keywords:  SAVEQUERIES wpdb has-patch
----------------------+-----------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6764>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list