| @@ -2,7 +2,17 @@ | ||
| 2 | 2 | if( !defined( 'WP_UNINSTALL_PLUGIN' ) ){ |
| 3 | 3 | die; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | -eos_plugin_revisions_remove_all_versions(); | |
| 6 | +if( !defined( 'PLUGIN_REVISIONS_PLUGIN_DIR' ) ){ | |
| 7 | + define( 'PLUGIN_REVISIONS_PLUGIN_DIR',untrailingslashit( dirname( __FILE__ ) ) ); | |
| 8 | +} | |
| 7 | 9 | |
| 8 | -delete_site_option( 'plugin_revisions' ); | |
| 10 | +if( !function_exists( 'eos_plugin_revisions_remove_all_versions' ) ){ | |
| 11 | + require_once PLUGIN_REVISIONS_PLUGIN_DIR.'/admin/pr-admin.php'; | |
| 12 | +} | |
| 13 | + | |
| 14 | +if( function_exists( 'eos_plugin_revisions_remove_all_versions' ) ){ | |
| 15 | + eos_plugin_revisions_remove_all_versions(); | |
| 16 | +} | |
| 17 | + | |
| 18 | +delete_site_option( 'plugin_revisions' ); | |