[wp-trac] [WordPress Trac] #27703: Need additional db version information in WP3.9+
WordPress Trac
noreply at wordpress.org
Thu Feb 5 11:05:20 UTC 2015
#27703: Need additional db version information in WP3.9+
-------------------------+-----------------------------
Reporter: webaware | Owner: pento
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Database | Version: 3.9
Severity: normal | Resolution: maybelater
Keywords: | Focuses: administration
-------------------------+-----------------------------
Changes (by dd32):
* status: reopened => closed
* resolution: => maybelater
Comment:
@nicocasel, A `db_version()` method wasn't implemented as it wasn't
required.
If you require that function you can use the code as shown here:
https://make.wordpress.org/core/2014/04/07/mysql-in-
wordpress-3-9/#comment-13174
{{{
if ( empty( $wpdb->use_mysqli ) ) {
$ver = mysql_get_server_info();
} else {
$ver = mysqli_get_server_info( $wpdb->dbh );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27703#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list