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:
parent
c0542be4ff
commit
da6a37c0d1
|
@ -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; ?>
|
||||
|
|
Loading…
Reference in New Issue