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

@ -42,7 +42,7 @@ $wu_mu_sunrise = defined('WPMU_PLUGIN_DIR')
* @since 2.0.0.3 Sunrise Version.
*/
foreach (array($wu_sunrise, $wu_mu_sunrise) as $wu_sunrise_file) {
foreach ([$wu_sunrise, $wu_mu_sunrise] as $wu_sunrise_file) {
if (file_exists($wu_sunrise_file)) {
if ($wu_sunrise_file === $wu_mu_sunrise) {