Commit 96ff9129 by lucha

pass the correct argument to is_plugin_active

1 parent 1b48135f
Pipeline #245 passed
in 2 minutes 5 seconds
Showing with 2 additions and 2 deletions
......@@ -525,7 +525,7 @@ function do_rename_plugins($args){
$plugin_dir = NOBLOGS_ROOT . '/wp-content/plugins/';
foreach ($rename as $old => $new){
if (is_plugin_active( $plugin_dir . $old )){
if (is_plugin_active( $old )){
deactivate_plugins($plugin_dir . $old, false, false);
$result = activate_plugin($plugin_dir . $new);
if (is_wp_error($result)){
......@@ -535,7 +535,7 @@ function do_rename_plugins($args){
}
}
}
restore_currnt_blog():
restore_current_blog();
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!