PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 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 All 506 releases
← All changes | 3rd-party/jetpack-backup.php +9 -7 13.3.3 → 16.3-a.7 View file →
@@ -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 = 'jetpack-backup';
20 20 const PLUGIN_FILE = 'jetpack-backup/jetpack-backup.php';
@@ -62,9 +62,9 @@
62 62 }
63 63
64 64 wp_safe_redirect( $redirect );
65 65
66 - exit;
66 + exit( 0 );
67 67 }
68 68
69 69 /**
70 70 * Install and activate the Jetpack Backup plugin.
@@ -96,10 +96,12 @@
96 96 /**
97 97 * Notify the user that the installation of Jetpack Backup failed.
98 98 */
99 99 function error_notice() {
100 - ?>
101 - <div class="notice notice-error is-dismissible">
102 - <p><?php esc_html_e( 'There was an error installing Jetpack Backup. Please try again.', 'jetpack' ); ?></p>
103 - </div>
104 - <?php
100 + wp_admin_notice(
101 + esc_html__( 'There was an error installing Jetpack Backup. Please try again.', 'jetpack' ),
102 + array(
103 + 'type' => 'error',
104 + 'dismissible' => true,
105 + )
106 + );
105 107 }