[wp-trac] [WordPress Trac] #13914: select(databasename) fails in WP 3.0RC3

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 15 21:54:21 UTC 2010


#13914: select(databasename) fails in WP 3.0RC3
--------------------------+-------------------------------------------------
 Reporter:  adiant        |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  high          |   Milestone:  3.0        
Component:  Database      |     Version:  3.0        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by nacin):

 I have no idea why $dbh is getting passed by reference there. That would
 need to be removed in order to make it an optional argument.

 Something like:
 {{{
 function select( $db, $dbh = null ) {
    if ( is_null( $dbh ) )
       $dbh = $this->dbh;
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13914#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list