PluginProbe
SQLite Database Integration / 2.2.0
SQLite Database Integration v2.2.0
3.0.2 3.0.1 trunk 2.1.13 2.1.14 2.1.15 2.1.16 2.2.0 2.2.1 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.17 2.2.18 2.2.19 2.2.2 2.2.20 2.2.21 2.2.22 2.2.23 2.2.3 All 32 releases
← All changes | admin-page.php +3 -6 2.1.162.2.0 View file →
@@ -46,14 +46,10 @@
46 46 );
47 47 ?>
48 48 </p>
49 49 <?php else : ?>
50 - <?php if ( ! class_exists( 'SQLite3' ) ) : ?>
50 + <?php if ( ! extension_loaded( 'pdo_sqlite' ) ) : ?>
51 51 <div class="notice notice-error">
52 - <p><?php esc_html_e( 'We detected that the SQLite3 class is missing from your server. Please make sure that SQLite is enabled in your PHP installation before proceeding.', 'sqlite-database-integration' ); ?></p>
53 - </div>
54 - <?php elseif ( ! extension_loaded( 'pdo_sqlite' ) ) : ?>
55 - <div class="notice notice-error">
56 52 <p><?php esc_html_e( 'We detected that the PDO SQLite driver is missing from your server (the pdo_sqlite extension is not loaded). Please make sure that SQLite is enabled in your PHP installation before proceeding.', 'sqlite-database-integration' ); ?></p>
57 53 </div>
58 54 <?php elseif ( file_exists( WP_CONTENT_DIR . '/db.php' ) && ! defined( 'SQLITE_DB_DROPIN_VERSION' ) ) : ?>
59 55 <?php if ( defined( 'PERFLAB_SQLITE_DB_DROPIN_VERSION' ) ) : ?>
@@ -129,9 +125,10 @@
129 125 function sqlite_plugin_adminbar_item( $admin_bar ) {
130 126 global $wpdb;
131 127
132 128 if ( defined( 'SQLITE_DB_DROPIN_VERSION' ) && defined( 'DB_ENGINE' ) && 'sqlite' === DB_ENGINE ) {
133 - $title = '<span style="color:#46B450;">' . __( 'Database: SQLite', 'sqlite-database-integration' ) . '</span>';
129 + $suffix = defined( 'WP_SQLITE_AST_DRIVER' ) && WP_SQLITE_AST_DRIVER ? ' (AST)' : '';
130 + $title = '<span style="color:#46B450;">' . __( 'Database: SQLite', 'sqlite-database-integration' ) . $suffix . '</span>';
134 131 } elseif ( stripos( $wpdb->db_server_info(), 'maria' ) !== false ) {
135 132 $title = '<span style="color:#DC3232;">' . __( 'Database: MariaDB', 'sqlite-database-integration' ) . '</span>';
136 133 } else {
137 134 $title = '<span style="color:#DC3232;">' . __( 'Database: MySQL', 'sqlite-database-integration' ) . '</span>';