Changeset 45904 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 08/28/2019 03:07:59 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r45803 r45904 133 133 global $wpdb; 134 134 135 if ( method_exists( $wpdb, 'db_version' ) ) { 136 if ( $wpdb->use_mysqli ) { 137 // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_server_info 138 $mysql_server_type = mysqli_get_server_info( $wpdb->dbh ); 139 } else { 140 // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysql_get_server_info 141 $mysql_server_type = mysql_get_server_info( $wpdb->dbh ); 142 } 143 144 $this->mysql_server_version = $wpdb->db_version(); 145 } 135 if ( $wpdb->use_mysqli ) { 136 // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_server_info 137 $mysql_server_type = mysqli_get_server_info( $wpdb->dbh ); 138 } else { 139 // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysql_get_server_info 140 $mysql_server_type = mysql_get_server_info( $wpdb->dbh ); 141 } 142 143 $this->mysql_server_version = $wpdb->get_var( 'SELECT VERSION()' ); 146 144 147 145 $this->health_check_mysql_rec_version = '5.6';
Note: See TracChangeset
for help on using the changeset viewer.