Update class-wc-admin-settings.php
Typo: visbility --> visibility
This commit is contained in:
parent
38ac7e4ac0
commit
73b20bfece
|
@ -427,7 +427,7 @@ class WC_Admin_Settings {
|
||||||
case 'checkbox' :
|
case 'checkbox' :
|
||||||
|
|
||||||
$option_value = self::get_option( $value['id'], $value['default'] );
|
$option_value = self::get_option( $value['id'], $value['default'] );
|
||||||
$visbility_class = array();
|
$visibility_class = array();
|
||||||
|
|
||||||
if ( ! isset( $value['hide_if_checked'] ) ) {
|
if ( ! isset( $value['hide_if_checked'] ) ) {
|
||||||
$value['hide_if_checked'] = false;
|
$value['hide_if_checked'] = false;
|
||||||
|
@ -436,25 +436,25 @@ class WC_Admin_Settings {
|
||||||
$value['show_if_checked'] = false;
|
$value['show_if_checked'] = false;
|
||||||
}
|
}
|
||||||
if ( 'yes' == $value['hide_if_checked'] || 'yes' == $value['show_if_checked'] ) {
|
if ( 'yes' == $value['hide_if_checked'] || 'yes' == $value['show_if_checked'] ) {
|
||||||
$visbility_class[] = 'hidden_option';
|
$visibility_class[] = 'hidden_option';
|
||||||
}
|
}
|
||||||
if ( 'option' == $value['hide_if_checked'] ) {
|
if ( 'option' == $value['hide_if_checked'] ) {
|
||||||
$visbility_class[] = 'hide_options_if_checked';
|
$visibility_class[] = 'hide_options_if_checked';
|
||||||
}
|
}
|
||||||
if ( 'option' == $value['show_if_checked'] ) {
|
if ( 'option' == $value['show_if_checked'] ) {
|
||||||
$visbility_class[] = 'show_options_if_checked';
|
$visibility_class[] = 'show_options_if_checked';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! isset( $value['checkboxgroup'] ) || 'start' == $value['checkboxgroup'] ) {
|
if ( ! isset( $value['checkboxgroup'] ) || 'start' == $value['checkboxgroup'] ) {
|
||||||
?>
|
?>
|
||||||
<tr valign="top" class="<?php echo esc_attr( implode( ' ', $visbility_class ) ); ?>">
|
<tr valign="top" class="<?php echo esc_attr( implode( ' ', $visibility_class ) ); ?>">
|
||||||
<th scope="row" class="titledesc"><?php echo esc_html( $value['title'] ) ?></th>
|
<th scope="row" class="titledesc"><?php echo esc_html( $value['title'] ) ?></th>
|
||||||
<td class="forminp forminp-checkbox">
|
<td class="forminp forminp-checkbox">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<fieldset class="<?php echo esc_attr( implode( ' ', $visbility_class ) ); ?>">
|
<fieldset class="<?php echo esc_attr( implode( ' ', $visibility_class ) ); ?>">
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue