Skip to content

Commit 23127b7

Browse files
author
Ryan Hoover
authored
Merge pull request #56 from wpengine/nojira-fix-continent-notice
Check for existing countrycode before assigning it
2 parents 61a98b2 + 0eafd66 commit 23127b7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/class-geoip.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Plugin Name: WP Engine GeoTarget
4-
* Version: 1.2.7
4+
* Version: 1.2.8
55
* Description: Create a personalized user experienced based on location.
66
* Author: WP Engine
77
* Author URI: http://wpengine.com
@@ -245,7 +245,7 @@ public function continent( $country = '' ) {
245245

246246
$continent = '';
247247

248-
if ( empty( $country ) ) {
248+
if ( empty( $country ) && ! empty( $this->geos['countrycode'] ) ) {
249249
$country = $this->geos['countrycode'];
250250
}
251251

src/readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: wpengine, markkelnar, stevenkword, stephenlin, ryanshoover, taylor4484, nateinaction
33
Tags: wpe, wpengine, geotarget, geoip, localization, geolocation
44
Requires at least: 3.0.1
5-
Tested up to: 5.2
6-
Stable tag: 1.2.7
5+
Tested up to: 5.5
6+
Stable tag: 1.2.8
77

88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -263,6 +263,10 @@ Please contact the WP Engine [Support Team](https://my.wpengine.com/support).
263263

264264
== Changelog ==
265265

266+
= 1.2.8 =
267+
- Fix for development sites that call the `continent` method
268+
- Bump for WP 5.5 compatibility
269+
266270
= 1.2.7 =
267271
- Optimize plugin name rename loop
268272
- Bump for WP 5.2 compatibility

0 commit comments

Comments
 (0)