Skip to content

Commit

Permalink
Make Jetpack 12.6 the default (#4888)
Browse files Browse the repository at this point in the history
* Jetpack 12.6: Only load for sites with WP 6.2+

* Add 12.6 to jetpack.php version meta

* Update Jetpack submodule to 12.6
  • Loading branch information
rebeccahum committed Sep 28, 2023
1 parent 64416af commit 68ada00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jetpack
Submodule jetpack updated 655 files
9 changes: 6 additions & 3 deletions jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin URI: https://jetpack.com
* Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things.
* Author: Automattic
* Version: 12.5
* Version: 12.6
* Author URI: https://jetpack.com
* License: GPL2+
* Text Domain: jetpack
Expand All @@ -29,9 +29,12 @@ function vip_default_jetpack_version() {
} elseif ( version_compare( $wp_version, '6.1', '<' ) ) {
// WordPress 6.0.x
return '12.0';
} else {
// WordPress 6.1 and newer.
} elseif ( version_compare( $wp_version, '6.2', '<' ) ) {
// WordPress 6.1.x
return '12.5';
} else {
// WordPress 6.2 and newer.
return '12.6';
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/test-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ public function test__vip_default_jetpack_version() {
global $wp_version;
$saved_wp_version = $wp_version;

$latest = '12.5';
$latest = '12.6';

$versions_map = [
// WordPress version => Jetpack version
'5.8.6' => '10.9',
'5.9' => '11.4',
'5.9.5' => '11.4',
'6.0' => '12.0',
'6.1' => $latest,
'6.1' => '12.5',
'6.2' => $latest,
'6.3' => $latest,
'6.3.1' => $latest,
Expand Down

0 comments on commit 68ada00

Please sign in to comment.