Skip to content

Commit

Permalink
Jetpack: Update to 14.2 (#6084)
Browse files Browse the repository at this point in the history
* Jetpack: Update to 14.2

* lint
  • Loading branch information
rebeccahum authored Jan 9, 2025
1 parent 8f9d8a0 commit cb46606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ function vip_default_jetpack_version() {
} elseif ( version_compare( $wp_version, '6.5', '<' ) ) {
// WordPress 6.4.x
return '13.6';
} else {
// WordPress 6.5 and newer.
} elseif ( version_compare( $wp_version, '6.6', '<' ) ) {
// WordPress 6.5.x
return '14.0';
} else {
// WordPress 6.6 and newer.
return '14.2';
}
}

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 = '14.0';
$latest = '14.2';

$versions_map = [
// WordPress version => Jetpack version
'6.1' => '12.5',
'6.2' => '12.8',
'6.3' => '13.1',
'6.4' => '13.6',
'6.5' => $latest,
'6.5' => '14.0',
'6.6' => $latest,
];

Expand Down

0 comments on commit cb46606

Please sign in to comment.