We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7be6b9c commit f9362baCopy full SHA for f9362ba
1 file changed
db.copy
@@ -46,7 +46,10 @@ add_action(
46
if ( ! function_exists( 'activate_plugin' ) ) {
47
require_once ABSPATH . 'wp-admin/includes/plugin.php';
48
}
49
- if ( is_plugin_inactive( '{SQLITE_PLUGIN}' ) ) {
+
50
+ $plugin_path = WP_PLUGIN_DIR . '/' . '{SQLITE_PLUGIN}';
51
52
+ if ( file_exists( $plugin_path ) && is_plugin_inactive( '{SQLITE_PLUGIN}' ) ) {
53
// If `activate_plugin()` returns a value other than null (like WP_Error),
54
// the plugin could not be found. Try with a hardcoded string,
55
// because that probably means the file was directly copy-pasted.
0 commit comments