Use PHP 7.4 featers and PHP 8 polyfills

This commit is contained in:
David Stone
2025-02-08 13:57:32 -07:00
parent 8bea6067cd
commit b41dc2b2eb
550 changed files with 15270 additions and 14627 deletions

View File

@ -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 : ?>