Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Deactivate jetpack-dev if asked jetpack-beta but nojetpack
Browse files Browse the repository at this point in the history
  • Loading branch information
oskosk committed Feb 16, 2022
1 parent d3e51fa commit 8226ccb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/jetpack-beta.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ function ( &$app = null, $features, $domain ) use ( $defaults ) {

if ( $features['branches'] ) {
foreach ( $features['branches'] as $plugin_name => $branch_name ) {
if ( $plugin_name === 'jetpack' && isset( $features['jetpack'] ) && $features['jetpack'] === false ) {
continue;
}
if ( $branch_name ) {
debug( '%s: Activating %s plugin %s branch in Beta plugin', $domain, $plugin_name, $branch_name );
activate_jetpack_branch( $plugin_name, $branch_name );
Expand Down

0 comments on commit 8226ccb

Please sign in to comment.