Version Description
This release is intented to fix the issue reported at forum here and here.
If you still find the error "/plugins/ip-geo-block/classes/class-ip-geo-block-logs.php (837) Unknown column last in field list", please deactivate plugin once and activate again. You will see the same error message again, but the things should be fixed.
Download this release
Release Info
Developer | tokkonopapa |
Plugin | IP Geo Block |
Version | 3.0.10.1 |
Comparing to | |
See all releases |
Code changes from version 3.0.10 to 3.0.10.1
- README.txt +6 -1
- classes/class-ip-geo-block-actv.php +22 -22
- classes/class-ip-geo-block.php +1 -1
- ip-geo-block.php +1 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: security, firewall, brute force, vulnerability, login, wp-admin, admin, ajax, xmlrpc, comment, pingback, trackback, spam, IP address, geo, geolocation, buddypress, bbPress
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.9.4
|
7 |
-
Stable tag: 3.0.10
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
@@ -356,6 +356,11 @@ Please refer to "[How can I fix permission troubles?](http://www.ipgeoblock.com/
|
|
356 |
|
357 |
== Changelog ==
|
358 |
|
|
|
|
|
|
|
|
|
|
|
359 |
= 3.0.10 =
|
360 |
* **New feature:** Add "Block badly-behaved bots and crawlers" in "Front-end target settings" section that validates the frequency of request.
|
361 |
* **Improvement:** Add a help link to the document for some sections.
|
4 |
Tags: security, firewall, brute force, vulnerability, login, wp-admin, admin, ajax, xmlrpc, comment, pingback, trackback, spam, IP address, geo, geolocation, buddypress, bbPress
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.9.4
|
7 |
+
Stable tag: 3.0.10.1
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
356 |
|
357 |
== Changelog ==
|
358 |
|
359 |
+
= 3.0.10.1 =
|
360 |
+
This release is intented to fix the issue reported at forum [here](https://wordpress.org/support/topic/error-on-updating-version-3-0-10/ "Error on updating Versión 3.0.10") and [here](https://wordpress.org/support/topic/error-report-on-latest-update/ "error report on latest update").
|
361 |
+
|
362 |
+
If you still find the error "/plugins/ip-geo-block/classes/class-ip-geo-block-logs.php (837) Unknown column ‘last’ in ‘field list’", please deactivate plugin once and activate again. You will see the same error message again, but the things should be fixed.
|
363 |
+
|
364 |
= 3.0.10 =
|
365 |
* **New feature:** Add "Block badly-behaved bots and crawlers" in "Front-end target settings" section that validates the frequency of request.
|
366 |
* **Improvement:** Add a help link to the document for some sections.
|
classes/class-ip-geo-block-actv.php
CHANGED
@@ -50,37 +50,37 @@ class IP_Geo_Block_Activate {
|
|
50 |
* @link https://wordpress.stackexchange.com/questions/181141/how-to-run-an-activation-function-when-plugin-is-network-activated-on-multisite
|
51 |
*/
|
52 |
public static function activate( $network_wide = FALSE ) {
|
53 |
-
|
54 |
-
|
55 |
-
self::activate_blog();
|
56 |
|
57 |
-
|
58 |
-
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
|
64 |
-
|
65 |
-
|
66 |
|
67 |
-
|
68 |
-
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
|
77 |
-
|
78 |
-
|
79 |
|
80 |
-
|
81 |
-
}
|
82 |
}
|
|
|
83 |
|
|
|
84 |
self::activate_main_blog( $settings );
|
85 |
}
|
86 |
}
|
50 |
* @link https://wordpress.stackexchange.com/questions/181141/how-to-run-an-activation-function-when-plugin-is-network-activated-on-multisite
|
51 |
*/
|
52 |
public static function activate( $network_wide = FALSE ) {
|
53 |
+
// Update main blog first.
|
54 |
+
self::activate_blog();
|
|
|
55 |
|
56 |
+
// Get option of main blog.
|
57 |
+
$settings = IP_Geo_Block::get_option();
|
58 |
|
59 |
+
if ( is_multisite() && $network_wide ) {
|
60 |
+
global $wpdb;
|
61 |
+
$blog_ids = $wpdb->get_col( "SELECT `blog_id` FROM `$wpdb->blogs` ORDER BY `blog_id` ASC" );
|
62 |
|
63 |
+
// Skip the main blog.
|
64 |
+
array_shift( $blog_ids );
|
65 |
|
66 |
+
foreach ( $blog_ids as $id ) {
|
67 |
+
switch_to_blog( $id );
|
68 |
|
69 |
+
if ( $settings['network_wide'] ) {
|
70 |
+
// Copy settings of main site to individual site
|
71 |
+
$map = IP_Geo_Block::get_option();
|
72 |
+
$settings['api_key']['GoogleMap'] = $map['api_key']['GoogleMap'];
|
73 |
+
update_option( IP_Geo_Block::OPTION_NAME, $settings );
|
74 |
+
}
|
75 |
|
76 |
+
// Initialize inidivisual site
|
77 |
+
self::activate_blog();
|
78 |
|
79 |
+
restore_current_blog();
|
|
|
80 |
}
|
81 |
+
}
|
82 |
|
83 |
+
if ( did_action( 'init' ) && current_user_can( 'manage_options' ) ) {
|
84 |
self::activate_main_blog( $settings );
|
85 |
}
|
86 |
}
|
classes/class-ip-geo-block.php
CHANGED
@@ -15,7 +15,7 @@ class IP_Geo_Block {
|
|
15 |
* Unique identifier for this plugin.
|
16 |
*
|
17 |
*/
|
18 |
-
const VERSION = '3.0.10';
|
19 |
const GEOAPI_NAME = 'ip-geo-api';
|
20 |
const PLUGIN_NAME = 'ip-geo-block';
|
21 |
const OPTION_NAME = 'ip_geo_block_settings';
|
15 |
* Unique identifier for this plugin.
|
16 |
*
|
17 |
*/
|
18 |
+
const VERSION = '3.0.10.1';
|
19 |
const GEOAPI_NAME = 'ip-geo-api';
|
20 |
const PLUGIN_NAME = 'ip-geo-block';
|
21 |
const OPTION_NAME = 'ip_geo_block_settings';
|
ip-geo-block.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
* Plugin Name: IP Geo Block
|
14 |
* Plugin URI: http://wordpress.org/plugins/ip-geo-block/
|
15 |
* Description: It blocks any spams, login attempts and malicious access to the admin area posted from outside your nation, and also prevents zero-day exploit.
|
16 |
-
* Version: 3.0.10
|
17 |
* Author: tokkonopapa
|
18 |
* Author URI: http://www.ipgeoblock.com/
|
19 |
* Text Domain: ip-geo-block
|
13 |
* Plugin Name: IP Geo Block
|
14 |
* Plugin URI: http://wordpress.org/plugins/ip-geo-block/
|
15 |
* Description: It blocks any spams, login attempts and malicious access to the admin area posted from outside your nation, and also prevents zero-day exploit.
|
16 |
+
* Version: 3.0.10.1
|
17 |
* Author: tokkonopapa
|
18 |
* Author URI: http://www.ipgeoblock.com/
|
19 |
* Text Domain: ip-geo-block
|