diff options
Diffstat (limited to 'plugins/jetpack/uninstall.php')
-rw-r--r-- | plugins/jetpack/uninstall.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/jetpack/uninstall.php b/plugins/jetpack/uninstall.php index 366e62d1..897e798a 100644 --- a/plugins/jetpack/uninstall.php +++ b/plugins/jetpack/uninstall.php @@ -1,5 +1,8 @@ <?php +use Automattic\Jetpack\Sync\Sender; +use Automattic\Jetpack\Backup\Helper_Script_Manager; + if ( !defined( 'WP_UNINSTALL_PLUGIN' ) || @@ -14,7 +17,8 @@ if ( if ( ! defined( 'JETPACK__PLUGIN_DIR' ) ) { define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); } -require_once JETPACK__PLUGIN_DIR . 'class.jetpack-options.php'; + +require JETPACK__PLUGIN_DIR . 'vendor/autoload_packages.php'; Jetpack_Options::delete_all_known_options(); @@ -32,5 +36,7 @@ delete_transient( 'jetpack_register' ); add_filter( 'jetpack_sync_modules', '__return_empty_array', 100 ); // Jetpack Sync -require_once JETPACK__PLUGIN_DIR . 'sync/class.jetpack-sync-sender.php'; -Jetpack_Sync_Sender::get_instance()->uninstall(); +Sender::get_instance()->uninstall(); + +// Jetpack Backup: Cleanup any leftover Helper Scripts +Helper_Script_Manager::delete_all_helper_scripts(); |