Skip to content

Commit 30a74b0

Browse files
committed
fix deactivation hook
1 parent 7eba205 commit 30a74b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deactivate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ function sqlite_plugin_remove_db_file() {
2525
$wp_filesystem->delete( WP_CONTENT_DIR . '/db.php' );
2626
}
2727
}
28-
register_deactivation_hook( __FILE__, 'sqlite_plugin_remove_db_file' ); // Remove db.php file on plugin deactivation.
28+
register_deactivation_hook( SQLITE_MAIN_FILE, 'sqlite_plugin_remove_db_file' ); // Remove db.php file on plugin deactivation.

0 commit comments

Comments
 (0)