fixed : custom tab with no class error

when class is not passed with custom tab. echo's undefined index error with classes fixed
This commit is contained in:
Shakeeb Sadikeen 2017-09-20 22:14:58 +05:30 committed by GitHub
parent c0542be4ff
commit da6a37c0d1
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<ul class="product_data_tabs wc-tabs">
<?php foreach ( self::get_product_data_tabs() as $key => $tab ) : ?>
<li class="<?php echo $key; ?>_options <?php echo $key; ?>_tab <?php echo implode( ' ' , (array) $tab['class'] ); ?>">
<li class="<?php echo $key; ?>_options <?php echo $key; ?>_tab <?php echo if(isset($tab['class'])) implode( ' ' , (array) $tab['class'] ); ?>">
<a href="#<?php echo $tab['target']; ?>"><span><?php echo esc_html( $tab['label'] ); ?></span></a>
</li>
<?php endforeach; ?>