<?php

if (!defined('ABSPATH')) {
    die(__("Can't load this file directly", 'woo-import-export'));
}

if (!defined('SORT_FLAG_CASE')) {
    define('SORT_FLAG_CASE', 5);
}

$wp_support_version = array( "4.5", "4.6", "4.7", "4.8", "4.9", "5.0","5.1");

global $wp_version;

foreach ($wp_support_version as $version) {

    if (version_compare($wp_version, $version, '<')) {

        if (file_exists(WPIE_PLUGIN_DIR . '/support/wordpress_' . $version . '.php')) {
            require_once(WPIE_PLUGIN_DIR . '/support/wordpress_' . $version . '.php');
        }
    }
}
unset($wp_support_version);


