Merge pull request #20037 from woocommerce/fix/steps

Add default empty step class to html-csv-import-steps.php
This commit is contained in:
Mike Jolley 2018-05-11 15:17:06 +01:00 committed by GitHub
commit cf1bd6b5cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<ol class="wc-progress-steps">
<?php foreach ( $this->steps as $step_key => $step ) : ?>
<?php
$step_class = '';
if ( $step_key === $this->step ) {
$step_class = 'active';
} elseif ( array_search( $this->step, array_keys( $this->steps ), true ) > array_search( $step_key, array_keys( $this->steps ), true ) ) {