diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-08-23 20:02:23 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-08-23 20:02:50 -0400 |
commit | ad3f35663e4e2b80a92166b590d3e2052b5aab91 (patch) | |
tree | 94f987efbdb50e1426956c1c04ac459a19c77e53 /plugins/jetpack/uninstall.php | |
parent | bin/update-wordpress: also update twentyfourteen twentyfifteen twentysixteen (diff) | |
download | blogs-gentoo-ad3f35663e4e2b80a92166b590d3e2052b5aab91.tar.gz blogs-gentoo-ad3f35663e4e2b80a92166b590d3e2052b5aab91.tar.bz2 blogs-gentoo-ad3f35663e4e2b80a92166b590d3e2052b5aab91.zip |
Update plugin jetpack to 4.2.2
Diffstat (limited to 'plugins/jetpack/uninstall.php')
-rw-r--r-- | plugins/jetpack/uninstall.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/jetpack/uninstall.php b/plugins/jetpack/uninstall.php index f2853708..437e33e1 100644 --- a/plugins/jetpack/uninstall.php +++ b/plugins/jetpack/uninstall.php @@ -2,15 +2,17 @@ if ( !defined( 'WP_UNINSTALL_PLUGIN' ) -|| + || !WP_UNINSTALL_PLUGIN -|| + || dirname( WP_UNINSTALL_PLUGIN ) != dirname( plugin_basename( __FILE__ ) ) ) { status_header( 404 ); exit; } +define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); + // Delete all compact options delete_option( 'jetpack_options' ); @@ -24,3 +26,7 @@ delete_option( 'jetpack_do_activate' ); delete_option( 'jetpack_was_activated' ); delete_option( 'jetpack_auto_installed' ); delete_transient( 'jetpack_register' ); + +// Jetpack Sync +require_once JETPACK__PLUGIN_DIR . 'sync/class.jetpack-sync-sender.php'; +Jetpack_Sync_Sender::get_instance()->uninstall();
\ No newline at end of file |