We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 738e3bc commit 079c5f2Copy full SHA for 079c5f2
1 file changed
activate.php
@@ -39,8 +39,10 @@ function sqlite_activation() {
39
40
// Handle upgrading from the performance-lab plugin.
41
if ( isset( $_GET['upgrade-from-pl'] ) ) {
42
+ global $wp_filesystem;
43
+ require_once ABSPATH . '/wp-admin/includes/file.php';
44
// Delete the previous db.php file.
- unlink( WP_CONTENT_DIR . '/db.php' );
45
+ $wp_filesystem->delete( WP_CONTENT_DIR . '/db.php' );
46
// Deactivate the performance-lab SQLite module.
47
$pl_option_name = defined( 'PERFLAB_MODULES_SETTING' ) ? PERFLAB_MODULES_SETTING : 'perflab_modules_settings';
48
$pl_option = get_option( $pl_option_name, array() );
0 commit comments