Skip to content

Commit

Permalink
Jetpack: Set 13.7 as default (for WP 6.5+) (#5809)
Browse files Browse the repository at this point in the history
* Jetpack: Set 13.7 as default

* Account for min version bump
  • Loading branch information
rebeccahum committed Aug 21, 2024
1 parent fdf2302 commit 7a68dc4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jetpack
Submodule jetpack updated 596 files
9 changes: 6 additions & 3 deletions jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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: 13.6
* Version: 13.7
* Author URI: https://jetpack.com
* License: GPL2+
* Text Domain: jetpack
Expand Down Expand Up @@ -37,9 +37,12 @@ function vip_default_jetpack_version() {
} elseif ( version_compare( $wp_version, '6.4', '<' ) ) {
// WordPress 6.3.x
return '13.1';
} else {
// WordPress 6.4 and newer.
} elseif ( version_compare( $wp_version, '6.5', '<' ) ) {
// WordPress 6.4.x
return '13.6';
} else {
// WordPress 6.5 and newer.
return '13.7';
}
}

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

$latest = '13.6';
$latest = '13.7';

$versions_map = [
// WordPress version => Jetpack version
Expand All @@ -18,7 +18,8 @@ public function test__vip_default_jetpack_version() {
'6.1' => '12.5',
'6.2' => '12.8',
'6.3' => '13.1',
'6.4' => $latest,
'6.4' => '13.6',
'6.5' => $latest,
];

foreach ( $versions_map as $wordpress_version => $jetpack_version ) {
Expand Down

0 comments on commit 7a68dc4

Please sign in to comment.