| @@ -842,12 +842,10 @@ | ||
| 842 | 842 | * Actions to accomplish before plugin uninstallation. |
| 843 | 843 | * If Remove settings chosen then directly remove data i.e. without archiving the quarantined file and table data. |
| 844 | 844 | */ |
| 845 | 845 | public function on_uninstall(): void { |
| 846 | - $method_name = 'data_' . $this->main_setting->uninstall_quarantine; | |
| 847 | - | |
| 848 | - if ( method_exists( $this, $method_name ) ) { | |
| 849 | - $this->$method_name(); | |
| 846 | + if ( 'remove' === $this->main_setting->uninstall_quarantine ) { | |
| 847 | + $this->data_remove(); | |
| 850 | 848 | } |
| 851 | 849 | } |
| 852 | 850 | |
| 853 | 851 | /** |