Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Jetpack 12.6 the default #4888

Merged
merged 3 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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