Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
|
||||
<tr
|
||||
<?php echo ! $default['done'] ? 'data-content="' . esc_attr($slug) . '"' : ''; ?>
|
||||
<?php echo wu_array_to_html_attrs(wu_get_isset($default, 'html_attr', array())); ?>
|
||||
<?php echo wu_array_to_html_attrs(wu_get_isset($default, 'html_attr', [])); ?>
|
||||
>
|
||||
|
||||
<?php if ($checks) : ?>
|
||||
@ -44,7 +44,7 @@
|
||||
<?php if ($default['done']) : ?>
|
||||
<td class="status">
|
||||
<span class="wu-text-green-600">
|
||||
<?php echo isset($default['completed']) ? $default['completed'] : __('Completed!', 'wp-ultimo'); ?>
|
||||
<?php echo $default['completed'] ?? __('Completed!', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php else : ?>
|
||||
|
@ -12,7 +12,7 @@
|
||||
<span class="dashicons dashicons-yes-alt wu-text-green-400 wu-w-auto wu-h-auto wu-text-5xl wu-mb-2"></span>
|
||||
|
||||
<h1 class="wu-text-gray-800">
|
||||
<?php printf(__('We are ready, %s!', 'wp-ultimo'), apply_filters('wu_setup_step_done_name', isset($page->customer->first) ? $page->customer->first : __('my friend', 'wp-ultimo'))); ?>
|
||||
<?php printf(__('We are ready, %s!', 'wp-ultimo'), apply_filters('wu_setup_step_done_name', $page->customer->first ?? __('my friend', 'wp-ultimo'))); ?>
|
||||
</h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
|
||||
|
Reference in New Issue
Block a user