| @@ -12,9 +12,9 @@ | ||
| 12 | 12 | |
| 13 | 13 | use Automattic\Jetpack\Plugins_Installer; |
| 14 | 14 | |
| 15 | 15 | if ( ! defined( 'ABSPATH' ) ) { |
| 16 | - exit; | |
| 16 | + exit( 0 ); | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | const PLUGIN_SLUG = 'creative-mail-by-constant-contact'; |
| 20 | 20 | const PLUGIN_FILE = 'creative-mail-by-constant-contact/creative-mail-plugin.php'; |
| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | function try_install() { |
| 41 | 41 | check_admin_referer( 'creative-mail-install' ); |
| 42 | 42 | |
| 43 | 43 | $result = false; |
| 44 | - $redirect = admin_url( 'edit.php?post_type=feedback' ); | |
| 44 | + $redirect = admin_url( 'admin.php?page=jetpack-forms-admin' ); | |
| 45 | 45 | |
| 46 | 46 | // Attempt to install and activate the plugin. |
| 47 | 47 | if ( current_user_can( 'activate_plugins' ) ) { |
| 48 | 48 | switch ( $_GET['creative-mail-action'] ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated -- Function only hooked if set. |
| @@ -64,9 +64,9 @@ | ||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | wp_safe_redirect( $redirect ); |
| 67 | 67 | |
| 68 | - exit; | |
| 68 | + exit( 0 ); | |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * Install and activate the Creative Mail plugin. |