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 | activate.php +0 -22 2.2.202.2.0 View file →
@@ -81,30 +81,8 @@
81 81 }
82 82
83 83 $destination = WP_CONTENT_DIR . '/db.php';
84 84
85 - /*
86 - * When an existing "db.php" drop-in is detected, let's check if it's a known
87 - * plugin that we can continue supporting even when we override the drop-in.
88 - */
89 - $override_db_dropin = false;
90 - if ( file_exists( $destination ) ) {
91 - // Check for the Query Monitor plugin.
92 - // When "QM_DB" exists, it must have been loaded via the "db.php" file.
93 - if ( class_exists( 'QM_DB', false ) ) {
94 - $override_db_dropin = true;
95 - }
96 -
97 - if ( $override_db_dropin ) {
98 - require_once ABSPATH . '/wp-admin/includes/file.php';
99 - global $wp_filesystem;
100 - if ( ! $wp_filesystem ) {
101 - WP_Filesystem();
102 - }
103 - $wp_filesystem->delete( $destination );
104 - }
105 - }
106 -
107 85 // Place database drop-in if not present yet, except in case there is
108 86 // another database drop-in present already.
109 87 if ( ! defined( 'SQLITE_DB_DROPIN_VERSION' ) && ! file_exists( $destination ) ) {
110 88 // Init the filesystem to allow copying the file.