[Fix] Unable to uninstall plugin
-
There’s a typo in uninstall.php that causes an error when uninstalling the plugin through the WordPress Plugin page.
if( $bodhi_options_on_deletion[del_plugin_data] === 'on' ) { delete_option( 'bodhi_svgs_plugin_version' ); delete_option( 'bodhi_svgs_settings' ); }
The code is missing quotes around the array index
del_plugin_data
.Got error ‘PHP message: PHP Fatal error: Uncaught Error: Undefined constant “del_plugin_data” in […]/wp-content/plugins/svg-support/uninstall.php
I would’ve submitted a pull request but couldn’t find the repo anywhere.
- The topic ‘[Fix] Unable to uninstall plugin’ is closed to new replies.