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

@ -11,28 +11,28 @@
<?php
$data = array();
$data = [];
$slug = 'signup_countries';
$headers = array(
$headers = [
__('Country', 'wp-ultimo'),
__('Customer Count', 'wp-ultimo'),
);
];
foreach ($countries as $country_code => $count) {
$line = array(
$line = [
wu_get_country_name($country_code),
$count,
);
];
$data[] = $line;
} // end foreach;
$page->render_csv_button(
array(
[
'headers' => $headers,
'data' => $data,
'slug' => $slug,
)
]
);
?>