diff --git a/admin/woocommerce-admin-settings-forms.php b/admin/woocommerce-admin-settings-forms.php index a025d676aeb..0d230542028 100644 --- a/admin/woocommerce-admin-settings-forms.php +++ b/admin/woocommerce-admin-settings-forms.php @@ -195,6 +195,7 @@ function woocommerce_admin_fields($options) { foreach ( $options as $value ) { if ( ! isset( $value['type'] ) ) continue; + if ( ! isset( $value['id'] ) ) $value['id'] = ''; if ( ! isset( $value['name'] ) ) $value['name'] = ''; if ( ! isset( $value['class'] ) ) $value['class'] = ''; if ( ! isset( $value['css'] ) ) $value['css'] = '';