PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 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 All 504 releases
← All changes | 3rd-party/woocommerce-services.php +9 -7 12.2.3 → 16.3-a.1 View file →
@@ -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.