Avoid a fatal error if select has no options
This commit is contained in:
parent
2da86accc8
commit
bd8a57eb32
|
@ -1781,7 +1781,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) {
|
|||
break;
|
||||
case 'select' :
|
||||
|
||||
$options = '';
|
||||
$options = $field = '';
|
||||
|
||||
if ( ! empty( $args['options'] ) ) {
|
||||
foreach ( $args['options'] as $option_key => $option_text )
|
||||
|
|
Loading…
Reference in New Issue