[wp-trac] Re: [WordPress Trac] #5860: Activating plugin that uses upgrade functions (dbDelta) fails

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 15 06:10:04 GMT 2008


#5860: Activating plugin that uses upgrade functions (dbDelta) fails
----------------------------+-----------------------------------------------
 Reporter:  jhodgdon        |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  normal          |    Milestone:  2.5      
Component:  Administration  |      Version:  2.5      
 Severity:  critical        |   Resolution:           
 Keywords:  has-patch       |  
----------------------------+-----------------------------------------------
Comment (by ryan):

 schema.php relies on the globals so they should be declared in schema.php.
 Declaring $wpdb and $wp_queries global at the top of schema.php seems like
 it would prevent these surprises.  We've been bitten by $wp_queries a few
 times already.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5860#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list