diff --git a/jetpack b/jetpack index de82ddd982..833884ad22 160000 --- a/jetpack +++ b/jetpack @@ -1 +1 @@ -Subproject commit de82ddd982f549445652028e1d8b60915604e622 +Subproject commit 833884ad227756b36229719f993bf1e65298e5e1 diff --git a/jetpack.php b/jetpack.php index cf491e6c6c..2c9365ff3e 100644 --- a/jetpack.php +++ b/jetpack.php @@ -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 @@ -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'; } } diff --git a/tests/test-jetpack.php b/tests/test-jetpack.php index 629ac6cbce..a1f5a3e124 100644 --- a/tests/test-jetpack.php +++ b/tests/test-jetpack.php @@ -7,7 +7,7 @@ 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 @@ -15,7 +15,7 @@ public function test__vip_default_jetpack_version() { '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,