<?php

  // Exit on direct access
  if (!defined('ABSPATH')) exit;

  // Fix PclZip error when php_uname is disabled
  if (PHP_MAJOR_VERSION >= 8 && !function_exists('php_uname')) {
    function php_uname() {
      if (DIRECTORY_SEPARATOR === '/') {
        return 'linux';
      } else return 'windows';
    }
  }
