Skip to content

Commit

Permalink
Display info when the AST driver is used
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJakes committed Jan 29, 2025
1 parent 48b9588 commit 605205c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ function sqlite_plugin_adminbar_item( $admin_bar ) {
global $wpdb;

if ( defined( 'SQLITE_DB_DROPIN_VERSION' ) && defined( 'DB_ENGINE' ) && 'sqlite' === DB_ENGINE ) {
$title = '<span style="color:#46B450;">' . __( 'Database: SQLite', 'sqlite-database-integration' ) . '</span>';
$suffix = defined( 'WP_SQLITE_AST_DRIVER' ) && WP_SQLITE_AST_DRIVER ? ' (AST)' : '';
$title = '<span style="color:#46B450;">' . __( 'Database: SQLite', 'sqlite-database-integration' ) . $suffix . '</span>';
} elseif ( stripos( $wpdb->db_server_info(), 'maria' ) !== false ) {
$title = '<span style="color:#DC3232;">' . __( 'Database: MariaDB', 'sqlite-database-integration' ) . '</span>';
} else {
Expand Down

0 comments on commit 605205c

Please sign in to comment.