iQ Block Country - Version 1.1.45

Version Description

  • Bugfix: (un)blocking individual pages and categories did not work anymore.
Download this release

Release Info

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

Code changes from version 1.1.44 to 1.1.45

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.44
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.
@@ -339,7 +339,7 @@ if (($blockcountry_is_login_page || is_admin() || $blockcountry_is_xmlrpc) && ge
339
  elseif ((!$blockcountry_is_login_page && !is_admin() && !$blockcountry_is_xmlrpc) && get_option('blockcountry_blockfrontend') == 'on')
340
  //elseif (get_option('blockcountry_blockfrontend') == "on")
341
  {
342
- add_action ( 'init', 'iqblockcountry_checkCountryFrontEnd', 1 );
343
  }
344
  else
345
  {
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.45
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.
339
  elseif ((!$blockcountry_is_login_page && !is_admin() && !$blockcountry_is_xmlrpc) && get_option('blockcountry_blockfrontend') == 'on')
340
  //elseif (get_option('blockcountry_blockfrontend') == "on")
341
  {
342
+ add_action ( 'wp', 'iqblockcountry_checkCountryFrontEnd', 1 );
343
  }
344
  else
345
  {
libs/blockcountry-checks.php CHANGED
@@ -319,7 +319,6 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
319
  return $blocked;
320
  }
321
 
322
-
323
  /*
324
  *
325
  * Does the real check of visitor IP against MaxMind database or the GeoAPI
319
  return $blocked;
320
  }
321
 
 
322
  /*
323
  *
324
  * Does the real check of visitor IP against MaxMind database or the GeoAPI
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.8.1
7
- Stable tag: 1.1.44
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -206,6 +206,10 @@ As the basic rule is to block all and every post you have to configure this in a
206
 
207
  == Changelog ==
208
 
 
 
 
 
209
  = 1.1.44 =
210
 
211
  * Change: Removed Asia API Key server.
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.8.1
7
+ Stable tag: 1.1.45
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
206
 
207
  == Changelog ==
208
 
209
+ = 1.1.45 =
210
+
211
+ * Bugfix: (un)blocking individual pages and categories did not work anymore.
212
+
213
  = 1.1.44 =
214
 
215
  * Change: Removed Asia API Key server.