PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.2
Jetpack – WP Security, Backup, Speed, & Growth v16.2
16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 All 503 releases
← All changes | uninstall.php +7 -2 12.9.516.2 View file →
@@ -4,12 +4,16 @@
4 4 *
5 5 * @package automattic/jetpack
6 6 */
7 7
8 -use Automattic\Jetpack\Backup\Helper_Script_Manager;
8 +use Automattic\Jetpack\Backup\V0005\Helper_Script_Manager;
9 9 use Automattic\Jetpack\Connection\Manager as Connection_Manager;
10 10 use Automattic\Jetpack\Sync\Sender;
11 11
12 +if ( ! defined( 'ABSPATH' ) ) {
13 + exit( 0 );
14 +}
15 +
12 16 /**
13 17 * Uninstall script for Jetpack.
14 18 */
15 19 function jetpack_uninstall() {
@@ -15,12 +19,13 @@
15 19 function jetpack_uninstall() {
16 20 if (
17 21 ! defined( 'WP_UNINSTALL_PLUGIN' ) ||
18 22 ! WP_UNINSTALL_PLUGIN ||
23 + // @phan-suppress-next-line PhanTypeMismatchArgumentInternal -- If it's defined, it's a string: https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/#method-2-uninstall-php
19 24 dirname( WP_UNINSTALL_PLUGIN ) !== dirname( plugin_basename( __FILE__ ) )
20 25 ) {
21 26 status_header( 404 );
22 - exit;
27 + exit( 0 );
23 28 }
24 29
25 30 if ( ! defined( 'JETPACK__PLUGIN_DIR' ) ) {
26 31 define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );