Merged in feature/280-dev-dev01 (pull request #21)

auto-patch  280-dev-dev01-2024-01-19T16_41_58

* auto-patch  280-dev-dev01-2024-01-19T16_41_58
This commit is contained in:
Tony Volpe
2024-01-19 16:44:43 +00:00
parent 2699b5437a
commit be83910651
2125 changed files with 179300 additions and 35639 deletions

View File

@@ -0,0 +1,25 @@
<?php
/**
* IP Geo Block API class library for Maxmind
*
* @version 1.1.15
* @author tokkonopapa <tokkonopapa@yahoo.com>
* @license GPL-3.0
* @link https://www.ipgeoblock.com/
* @copyright 2013-2018 tokkonopapa
*/
class_exists( 'IP_Geo_Block_API', FALSE ) or die;
function ip_geo_block_setup_maxmind() {
$path = dirname( __FILE__ );
// GeoLite2 requires PHP 5.4+ (WordPress 3.7 requires PHP 5.2.4)
if ( version_compare( PHP_VERSION, '5.4' ) >= 0 )
require_once $path . '/class-maxmind-geolite2.php';
// GeoLite Legacy
if ( file_exists( $path . '/class-maxmind-legacy.php' ) )
require_once $path . '/class-maxmind-legacy.php';
}
ip_geo_block_setup_maxmind();