PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.2
Jetpack – WP Security, Backup, Speed, & Growth v16.2
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 14.1.1 14.2.2 All 502 releases
← All changes | jetpack.php +35 -32 13.8.316.2 View file →
@@ -3,39 +3,45 @@
3 3 * Plugin Name: Jetpack
4 4 * Plugin URI: https://jetpack.com
5 5 * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things.
6 6 * Author: Automattic
7 - * Version: 13.8.3
7 + * Version: 16.2
8 8 * Author URI: https://jetpack.com
9 9 * License: GPL2+
10 10 * Text Domain: jetpack
11 - * Requires at least: 6.5
12 - * Requires PHP: 7.0
11 + * Requires at least: 7.0
12 + * Requires PHP: 7.4
13 13 *
14 14 * @package automattic/jetpack
15 15 */
16 16
17 -use Automattic\Jetpack\Image_CDN\Image_CDN_Core;
18 -
19 17 /*
20 -This program is free software; you can redistribute it and/or
21 -modify it under the terms of the GNU General Public License
22 -as published by the Free Software Foundation; either version 2
23 -of the License, or (at your option) any later version.
18 + * This program is free software; you can redistribute it and/or
19 + * modify it under the terms of the GNU General Public License
20 + * as published by the Free Software Foundation; either version 2
21 + * of the License, or (at your option) any later version.
22 + *
23 + * This program is distributed in the hope that it will be useful,
24 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 + * GNU General Public License for more details.
27 + *
28 + * You should have received a copy of the GNU General Public License
29 + * along with this program; if not, see <https://www.gnu.org/licenses/>.
30 + */
24 31
25 -This program is distributed in the hope that it will be useful,
26 -but WITHOUT ANY WARRANTY; without even the implied warranty of
27 -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 -GNU General Public License for more details.
32 +use Automattic\Jetpack\Image_CDN\Image_CDN_Core;
29 33
30 -You should have received a copy of the GNU General Public License
31 -along with this program; if not, write to the Free Software
32 -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33 -*/
34 +if ( ! defined( 'ABSPATH' ) ) {
35 + exit( 0 );
36 +}
34 37
35 -define( 'JETPACK__MINIMUM_WP_VERSION', '6.5' );
36 -define( 'JETPACK__MINIMUM_PHP_VERSION', '7.0' );
37 -define( 'JETPACK__VERSION', '13.8.3' );
38 +if ( ! defined( 'JETPACK__VERSION' ) ) {
39 + // This breaks the project version checks when a one-liner.
40 + define( 'JETPACK__VERSION', '16.2' );
41 +}
42 +defined( 'JETPACK__MINIMUM_WP_VERSION' ) || define( 'JETPACK__MINIMUM_WP_VERSION', '7.0' );
43 +defined( 'JETPACK__MINIMUM_PHP_VERSION' ) || define( 'JETPACK__MINIMUM_PHP_VERSION', '7.4' );
38 44
39 45 /**
40 46 * Constant used to fetch the connection owner token
41 47 *
@@ -41,15 +47,14 @@
41 47 *
42 48 * @deprecated 9.0.0
43 49 * @var boolean
44 50 */
45 -define( 'JETPACK_MASTER_USER', true );
51 +defined( 'JETPACK_MASTER_USER' ) || define( 'JETPACK_MASTER_USER', true );
46 52
47 -define( 'JETPACK__API_VERSION', 1 );
48 -define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
49 -define( 'JETPACK__PLUGIN_FILE', __FILE__ );
53 +defined( 'JETPACK__API_VERSION' ) || define( 'JETPACK__API_VERSION', 1 );
54 +defined( 'JETPACK__PLUGIN_DIR' ) || define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
55 +defined( 'JETPACK__PLUGIN_FILE' ) || define( 'JETPACK__PLUGIN_FILE', __FILE__ );
50 56
51 -defined( 'JETPACK__RELEASE_POST_BLOG_SLUG' ) || define( 'JETPACK__RELEASE_POST_BLOG_SLUG', 'jetpackreleaseblog.wordpress.com' );
52 57 defined( 'JETPACK_CLIENT__AUTH_LOCATION' ) || define( 'JETPACK_CLIENT__AUTH_LOCATION', 'header' );
53 58
54 59 /**
55 60 * WP.com API no longer supports `http://` protocol.
@@ -115,15 +120,13 @@
115 120 *
116 121 * @since 7.2.0
117 122 */
118 123 function jetpack_admin_unsupported_wp_notice() {
119 - wp_admin_notice(
120 - esc_html__( 'Jetpack requires a more recent version of WordPress and has been paused. Please update WordPress to continue enjoying Jetpack.', 'jetpack' ),
121 - array(
122 - 'type' => 'error',
123 - 'dismissible' => true,
124 - )
125 - );
124 + ?>
125 + <div class="notice notice-error is-dismissible">
126 + <p><?php esc_html_e( 'Jetpack requires a more recent version of WordPress and has been paused. Please update WordPress to continue enjoying Jetpack.', 'jetpack' ); ?></p>
127 + </div>
128 + <?php
126 129 }
127 130
128 131 add_action( 'admin_notices', 'jetpack_admin_unsupported_wp_notice' );
129 132 return;