| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | |
| 3 | 3 | use Automattic\Jetpack\Plugins_Installer; |
| 4 | 4 | |
| 5 | 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | - exit; | |
| 6 | + exit( 0 ); | |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Installs and activates the WooCommerce Services plugin. |
| @@ -103,9 +103,9 @@ | ||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | wp_safe_redirect( $redirect ); |
| 106 | 106 | |
| 107 | - exit; | |
| 107 | + exit( 0 ); | |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Notify the user that the installation of WooCommerce Services failed. |
| @@ -110,13 +110,15 @@ | ||
| 110 | 110 | /** |
| 111 | 111 | * Notify the user that the installation of WooCommerce Services failed. |
| 112 | 112 | */ |
| 113 | 113 | public function error_notice() { |
| 114 | - ?> | |
| 115 | - <div class="notice notice-error is-dismissible"> | |
| 116 | - <p><?php esc_html_e( 'There was an error installing WooCommerce Services.', 'jetpack' ); ?></p> | |
| 117 | - </div> | |
| 118 | - <?php | |
| 114 | + wp_admin_notice( | |
| 115 | + esc_html__( 'There was an error installing WooCommerce Services.', 'jetpack' ), | |
| 116 | + array( | |
| 117 | + 'type' => 'error', | |
| 118 | + 'dismissible' => true, | |
| 119 | + ) | |
| 120 | + ); | |
| 119 | 121 | } |
| 120 | 122 | |
| 121 | 123 | /** |
| 122 | 124 | * Download and install the WooCommerce Services plugin. |