| @@ -6,8 +6,12 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | use Automattic\Jetpack\Redirect; |
| 9 | 9 | |
| 10 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 11 | + exit( 0 ); | |
| 12 | +} | |
| 13 | + | |
| 10 | 14 | /** |
| 11 | 15 | * Notify user that VaultPress has been disabled. Hide VaultPress notice that requested attention. |
| 12 | 16 | * |
| 13 | 17 | * @since 5.8 |
| @@ -17,13 +21,13 @@ | ||
| 17 | 21 | // such as admin_ajax, that could deactivate the plugin without showing this notification. |
| 18 | 22 | deactivate_plugins( 'vaultpress/vaultpress.php' ); |
| 19 | 23 | |
| 20 | 24 | // Remove WP core notice that says that the plugin was activated. |
| 21 | - unset( $_GET['activate'] ); // phpcs:ignore WordPress.Security.NonceVerification | |
| 25 | + unset( $_GET['activate'] ); | |
| 22 | 26 | $message = sprintf( |
| 23 | 27 | wp_kses( |
| 24 | - /* Translators: first variable is the full URL to the new dashboard */ | |
| 25 | - __( '<p style="margin-bottom: 0.25em;"><strong>Jetpack is now handling your backups.</strong></p><p>VaultPress is no longer needed and has been deactivated. You can access your backups at <a href="%3$s" target="_blank" rel="noopener noreferrer">this dashboard</a>.</p>', 'jetpack' ), | |
| 28 | + /* Translators: variable is the full URL to the new dashboard */ | |
| 29 | + __( '<p style="margin-bottom: 0.25em;"><strong>Jetpack is now handling your backups.</strong></p><p>VaultPress is no longer needed and has been deactivated. You can access your backups at <a href="%s" target="_blank" rel="noopener noreferrer">this dashboard</a>.</p>', 'jetpack' ), | |
| 26 | 30 | array( |
| 27 | 31 | 'a' => array( |
| 28 | 32 | 'href' => array(), |
| 29 | 33 | 'target' => array(), |