iQ Block Country - Version 1.1.33

Version Description

  • Bugfix: Bug smashed on tag page
Download this release

Release Info

Developer iqpascal
Plugin Icon 128x128 iQ Block Country
Version 1.1.33
Comparing to
See all releases

Code changes from version 1.1.32 to 1.1.33

iq-block-country.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: iQ Block Country
4
  Plugin URI: https://www.webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
5
- Version: 1.1.32
6
  Author: Pascal
7
  Author URI: https://www.webence.nl/
8
  Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
2
  /*
3
  Plugin Name: iQ Block Country
4
  Plugin URI: https://www.webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
5
+ Version: 1.1.33
6
  Author: Pascal
7
  Author URI: https://www.webence.nl/
8
  Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
libs/blockcountry-checks.php CHANGED
@@ -236,11 +236,15 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
236
  }
237
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
238
  }
239
-
240
 
241
  if (is_tag() && $blockedtag == "on")
242
  {
243
- $flagged = TRUE;
 
 
 
 
244
  if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
245
  $flagged = FALSE;
246
  }
236
  }
237
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
238
  }
239
+
240
 
241
  if (is_tag() && $blockedtag == "on")
242
  {
243
+ $flagged = FALSE;
244
+ if ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip))))
245
+ {
246
+ $flagged = TRUE;
247
+ }
248
  if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
249
  $flagged = FALSE;
250
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.webence.nl/plugins/donate
4
  Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist, security
5
  Requires at least: 3.5.2
6
  Tested up to: 4.5.3
7
- Stable tag: 1.1.32
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -203,6 +203,10 @@ You can allow Jetpack by selecting "Jetpack by wordpress.com" as a search engine
203
 
204
  == Changelog ==
205
 
 
 
 
 
206
  = 1.1.32 =
207
 
208
  * Bugfix: Bug smashed on tag page
4
  Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist, security
5
  Requires at least: 3.5.2
6
  Tested up to: 4.5.3
7
+ Stable tag: 1.1.33
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
203
 
204
  == Changelog ==
205
 
206
+ = 1.1.33 =
207
+
208
+ * Bugfix: Bug smashed on tag page
209
+
210
  = 1.1.32 =
211
 
212
  * Bugfix: Bug smashed on tag page