Skip to content

Commit

Permalink
Remove call to nonexistent plugin_force_uninstall()
Browse files Browse the repository at this point in the history
This call has been present since manage_plugin_uninstall.php was
initially created, but the function has never been defined in Plugin
API.

Considering that having $t_plugin == null (supposedly meaning that the
plugin is not properly registered) is not a normal scenario, it makes
more sense to remove the call rather than creating the missing API.

Fixes #12961
  • Loading branch information
dregad committed Jan 16, 2021
1 parent ae83ef8 commit 0bb66f5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions manage_plugin_uninstall.php
Expand Up @@ -63,8 +63,6 @@

if( !is_null( $t_plugin ) ) {
plugin_uninstall( $t_plugin );
} else {
plugin_force_uninstall( $f_basename );
}

form_security_purge( 'manage_plugin_uninstall' );
Expand Down

0 comments on commit 0bb66f5

Please sign in to comment.