| @@ -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__ ) ); |