Skip to content

Commit

Permalink
Merge branch 'release/1.0.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Logghe committed Sep 12, 2017
2 parents b21a9af + 46e6dca commit 163b411
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: timersys
Donate link: https://timersys.com
Tags: geo redirects, geo redirection, redirect by country, geotargeting, geolite, maxmind
Tested up to: 4.8
Stable tag: 1.0.2.1
Stable tag: 1.0.2.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -34,6 +34,10 @@ Rules available:

== Changelog ==

= 1.0.2.2 =
* Changes rules priority to save users credits by simple putting geo rules at the end
* Updated core files

= 1.0.2.1 =
* Fixed problem with automatic updates
* Updated core files
Expand Down
4 changes: 2 additions & 2 deletions geo-redirects.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: Geo Redirects
* Plugin URI: https://geotargetingwp/
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.
* Version: 1.0.2.1
* Version: 1.0.2.2
* Author: Damian Logghe
* Author URI: https://timersys.com
* License: GPL-2.0+
Expand All @@ -23,7 +23,7 @@
die;
}

define( 'GEOTR_VERSION', '1.0.2.1');
define( 'GEOTR_VERSION', '1.0.2.2');
define( 'GEOTR_PLUGIN_FILE' , __FILE__);
define( 'GEOTR_DIR', dirname(__FILE__));
define( 'GEOTR_URL', plugin_dir_url(__FILE__));
Expand Down
3 changes: 3 additions & 0 deletions includes/class-geotr-rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public static function do_redirection( $rules = '' ) {
$match = apply_filters( 'geotr/rules/rule_match/' . $rule['param'], $rule );
if ( ! $match ) {
$match_group = false;
// if one rule fails we don't need to check the rest of the rules in the group
// that way if we add geo rules down it won't get executed and will save credits
break;
}
}
}
Expand Down

0 comments on commit 163b411

Please sign in to comment.