rebase on oct-10-2023

This commit is contained in:
Rachit Bhargava
2023-10-10 17:23:21 -04:00
parent d37566ffb6
commit d096058d7d
4789 changed files with 254611 additions and 307223 deletions

View File

@@ -429,8 +429,9 @@ if ( ! class_exists( 'WC_Admin_Settings', false ) ) :
// Radio inputs.
case 'radio':
$option_value = $value['value'];
$disabled_values = $value['disabled'] ?? array();
$option_value = $value['value'];
$disabled_values = $value['disabled'] ?? array();
$show_desc_at_end = $value['desc_at_end'] ?? false;
?>
<tr valign="top">
@@ -439,7 +440,11 @@ if ( ! class_exists( 'WC_Admin_Settings', false ) ) :
</th>
<td class="forminp forminp-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>">
<fieldset>
<?php echo $description; // WPCS: XSS ok. ?>
<?php
if ( ! $show_desc_at_end ) {
echo wp_kses_post( $description );
}
?>
<ul>
<?php
foreach ( $value['options'] as $key => $val ) {
@@ -458,6 +463,9 @@ if ( ! class_exists( 'WC_Admin_Settings', false ) ) :
</li>
<?php
}
if ( $show_desc_at_end ) {
echo wp_kses_post( "<p class='description description-thin'>{$description}</p>" );
}
?>
</ul>
</fieldset>