Skip to content

Commit

Permalink
Drop the local constant and instead set the 'local' as initial versio…
Browse files Browse the repository at this point in the history
…n to test

So that any Jetpack in 'client-mu-plugins' takes precedence
  • Loading branch information
rinatkhaziev committed May 2, 2024
1 parent 4e19e00 commit 5a4631e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* License: GPL2+
* Text Domain: jetpack
* Requires at least: 5.7
* Requires PHP: 5.6
* Requires PHP: 8.0
*
* @package automattic/jetpack
*/
Expand Down Expand Up @@ -528,11 +528,9 @@ function vip_jetpack_load() {
return;
}

$jetpack_to_test = array();

if ( defined( 'WPCOM_VIP_JETPACK_LOCAL' ) && WPCOM_VIP_JETPACK_LOCAL ) {
$jetpack_to_test[] = 'local';
}
$jetpack_to_test = [
'local',
];

if ( defined( 'VIP_JETPACK_PINNED_VERSION' ) ) {
$jetpack_to_test[] = VIP_JETPACK_PINNED_VERSION;
Expand Down

0 comments on commit 5a4631e

Please sign in to comment.