Skip to content

Commit bbe6470

Browse files
committed
Display info when the AST driver is used
1 parent 50d0bd2 commit bbe6470

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

admin-page.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ function sqlite_plugin_adminbar_item( $admin_bar ) {
130130
global $wpdb;
131131

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

0 commit comments

Comments
 (0)