iQ Block Country - Version 1.1.37

Version Description

  • Change: Small adjustment to prevent wp_mail declaration as much as possible.
Download this release

Release Info

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

Code changes from version 1.1.36 to 1.1.37

Files changed (2) hide show
  1. iq-block-country.php +6 -5
  2. readme.txt +5 -1
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.36
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.
@@ -269,14 +269,15 @@ register_uninstall_hook(__file__, 'iqblockcountry_uninstall');
269
  /* Clean logging database */
270
  iqblockcountry_clean_db();
271
 
272
- if(!function_exists('is_user_logged_in')) {
273
- include(ABSPATH . "wp-includes/pluggable.php");
274
- }
275
-
276
  if (isset($_POST['action']))
277
  {
 
278
  $iqaction = filter_var($_POST['action'],FILTER_SANITIZE_STRING);
279
  if ($iqaction == 'csvoutput') {
 
 
 
280
 
281
  if (is_user_logged_in() && is_admin() && check_admin_referer( 'iqblockcountrycsv' ))
282
  {
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.37
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.
269
  /* Clean logging database */
270
  iqblockcountry_clean_db();
271
 
272
+
 
 
 
273
  if (isset($_POST['action']))
274
  {
275
+
276
  $iqaction = filter_var($_POST['action'],FILTER_SANITIZE_STRING);
277
  if ($iqaction == 'csvoutput') {
278
+ if(!function_exists('is_user_logged_in')) {
279
+ include(ABSPATH . "wp-includes/pluggable.php");
280
+ }
281
 
282
  if (is_user_logged_in() && is_admin() && check_admin_referer( 'iqblockcountrycsv' ))
283
  {
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.6.1
7
- Stable tag: 1.1.35
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -213,6 +213,10 @@ As the basic rule is to block all and every post you have to configure this in a
213
 
214
  == Changelog ==
215
 
 
 
 
 
216
  = 1.1.36 =
217
 
218
  * Bugfix: Smashed bug on backend
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.6.1
7
+ Stable tag: 1.1.37
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
213
 
214
  == Changelog ==
215
 
216
+ = 1.1.37 =
217
+
218
+ * Change: Small adjustment to prevent wp_mail declaration as much as possible.
219
+
220
  = 1.1.36 =
221
 
222
  * Bugfix: Smashed bug on backend