Version Description
- FIX: Show Maxmind admin notice only on GeoIP pages to make it less intrusive
Download this release
Release Info
Developer | benjamin4 |
Plugin | GeoIP Detection |
Version | 4.2.2 |
Comparing to | |
See all releases |
Code changes from version 4.2.1 to 4.2.2
- check_compatibility.php +8 -0
- geoip-detect.php +2 -2
- readme.txt +3 -0
check_compatibility.php
CHANGED
@@ -82,6 +82,14 @@ class Maxmind {
|
|
82 |
}
|
83 |
|
84 |
function checkCompatible() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
$readerClassInfo = new \ReflectionClass('\MaxMind\Db\Reader');
|
86 |
if (!$readerClassInfo->hasMethod('getWithPrefixLen')) {
|
87 |
$this->getFiles();
|
82 |
}
|
83 |
|
84 |
function checkCompatible() {
|
85 |
+
if (empty($_GET['page'])) {
|
86 |
+
return;
|
87 |
+
}
|
88 |
+
|
89 |
+
if ($_GET['page'] !== 'geoip-detect/geoip-detect.php') {
|
90 |
+
return;
|
91 |
+
}
|
92 |
+
|
93 |
$readerClassInfo = new \ReflectionClass('\MaxMind\Db\Reader');
|
94 |
if (!$readerClassInfo->hasMethod('getWithPrefixLen')) {
|
95 |
$this->getFiles();
|
geoip-detect.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.yellowtree.de
|
|
5 |
Description: Retrieving Geo-Information using the Maxmind GeoIP (Lite) Database.
|
6 |
Author: Yellow Tree (Benjamin Pick)
|
7 |
Author URI: http://www.yellowtree.de
|
8 |
-
Version: 4.2.
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Text Domain: geoip-detect
|
@@ -16,7 +16,7 @@ Requires WP: 5.0
|
|
16 |
Requires PHP: 7.2.5
|
17 |
*/
|
18 |
|
19 |
-
define('GEOIP_DETECT_VERSION', '4.2.
|
20 |
|
21 |
/*
|
22 |
Copyright 2013-2021 Yellow Tree, Siegen, Germany
|
5 |
Description: Retrieving Geo-Information using the Maxmind GeoIP (Lite) Database.
|
6 |
Author: Yellow Tree (Benjamin Pick)
|
7 |
Author URI: http://www.yellowtree.de
|
8 |
+
Version: 4.2.2
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Text Domain: geoip-detect
|
16 |
Requires PHP: 7.2.5
|
17 |
*/
|
18 |
|
19 |
+
define('GEOIP_DETECT_VERSION', '4.2.2');
|
20 |
|
21 |
/*
|
22 |
Copyright 2013-2021 Yellow Tree, Siegen, Germany
|
readme.txt
CHANGED
@@ -165,6 +165,9 @@ If you use Maxmind "Automatic download" then you need to upgrade to this plugin
|
|
165 |
|
166 |
== Changelog ==
|
167 |
|
|
|
|
|
|
|
168 |
= 4.2.1 =
|
169 |
* FIX: Do not disable lookup automatically when potentially incompatible Maxmind libraries are found.
|
170 |
|
165 |
|
166 |
== Changelog ==
|
167 |
|
168 |
+
= 4.2.2 =
|
169 |
+
* FIX: Show Maxmind admin notice only on GeoIP pages to make it less intrusive
|
170 |
+
|
171 |
= 4.2.1 =
|
172 |
* FIX: Do not disable lookup automatically when potentially incompatible Maxmind libraries are found.
|
173 |
|