Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -16,9 +16,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-title',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
@ -44,9 +44,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -28,9 +28,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -18,9 +18,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-title',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
@ -34,15 +34,15 @@
|
||||
$form = new \WP_Ultimo\UI\Form(
|
||||
$field->id,
|
||||
$field->fields,
|
||||
array(
|
||||
[
|
||||
'views' => 'checkout/fields',
|
||||
'classes' => 'wu-flex wu-my-1',
|
||||
'field_wrapper_classes' => 'wu-bg-transparent',
|
||||
'wrap_tag' => 'span',
|
||||
'step' => (object) array(
|
||||
'step' => (object) [
|
||||
'classes' => '',
|
||||
),
|
||||
)
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$form->render();
|
||||
@ -54,9 +54,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -29,9 +29,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -19,9 +19,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-title',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
/**
|
||||
@ -31,9 +31,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-description',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
@ -53,9 +53,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -16,9 +16,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-title',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
@ -48,9 +48,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -19,9 +19,9 @@ $active_gateways = wu_get_active_gateway_as_options();
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-title',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
@ -71,9 +71,9 @@ $active_gateways = wu_get_active_gateway_as_options();
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -16,9 +16,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-title',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
@ -44,9 +44,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -16,9 +16,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-title',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
@ -44,9 +44,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -16,9 +16,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-title',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
@ -65,9 +65,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -16,9 +16,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-title',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
@ -27,7 +27,7 @@
|
||||
|
||||
<div class="sm:wu-flex wu-items-stretch wu-content-center">
|
||||
|
||||
<div <?php echo wu_array_to_html_attrs($field->prefix_html_attr ?? array()); ?>>
|
||||
<div <?php echo wu_array_to_html_attrs($field->prefix_html_attr ?? []); ?>>
|
||||
<?php echo $field->prefix; ?>
|
||||
</div>
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
<?php if ($field->suffix) : ?>
|
||||
|
||||
<div <?php echo wu_array_to_html_attrs($field->suffix_html_attr ?? array()); ?>>
|
||||
<div <?php echo wu_array_to_html_attrs($field->suffix_html_attr ?? []); ?>>
|
||||
<?php echo $field->suffix; ?>
|
||||
</div>
|
||||
|
||||
@ -58,9 +58,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -28,9 +28,9 @@
|
||||
*/
|
||||
wu_get_template(
|
||||
'checkout/fields/partials/field-errors',
|
||||
array(
|
||||
[
|
||||
'field' => $field,
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user