Skip to content

Commit

Permalink
Merge pull request #702 from 10up/fix/662
Browse files Browse the repository at this point in the history
fix/662: Fix the feature connection status in the onboarding wizard
  • Loading branch information
dkotter authored Feb 9, 2024
2 parents faae0f0 + 5345412 commit 5685687
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/Classifai/Admin/templates/onboarding-step-three.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
<?php
$feature_keys = array_keys( $enabled_features );
foreach ( $enabled_features as $key => $feature_class ) {
$is_configured = in_array( $key, $configured_features, true ) ? true : false;
$feature = new $feature_class();
$is_configured = $feature->is_enabled();
$feature_url = add_query_arg( 'tab', $key, $base_url );
$is_active = ( $current_feature === $key ) ? 'active' : '';
$icon_class = 'dashicons-clock';
Expand Down

0 comments on commit 5685687

Please sign in to comment.