| @@ -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. |