Skip to content

Commit

Permalink
Increase Minimum requirement to 4.0. The reason is not that 3.5 stopp…
Browse files Browse the repository at this point in the history
…ed working, but the unit tests did. So continue to use it at your own fancy, but I won't fix it if it breaks. Copyright notice 2019
  • Loading branch information
Benjamin Pick committed Jan 18, 2019
1 parent 567d508 commit a8189dd
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion admin-ui.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion api.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion check_requirements.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion data-sources/auto.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion data-sources/header.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion data-sources/manual.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion data-sources/precision.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion data-sources/registry.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion filter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion geoip-detect-lib.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
8 changes: 5 additions & 3 deletions geoip-detect.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
Description: Retrieving Geo-Information using the Maxmind GeoIP (Lite) Database.
Author: Yellow Tree (Benjamin Pick)
Author URI: http://www.yellowtree.de
Version: 2.9.3-beta
Version: 2.10.0-beta
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: geoip-detect
Domain Path: /languages
GitHub Plugin URI: https://github.com/yellowtree/geoip-detect
GitHub Branch: master
Requires WP: 3.5
Requires WP: 4.0
Requires PHP: 5.4
*/

define('GEOIP_DETECT_VERSION', '2.9.2');

/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand All @@ -38,6 +38,8 @@
*/

define('GEOIP_REQUIRED_PHP_VERSION', '5.4');

// It should still run in 3.5 . But officially supported is only WP 4.0 and above.
define('GEOIP_REQUIRED_WP_VERSION', '3.5');

define('GEOIP_PLUGIN_FILE', __FILE__);
Expand Down
2 changes: 1 addition & 1 deletion legacy-api.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion lib/geonames/generators/geonames.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion lib/geonames/geonames-country-info.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion lib/get-client-ip.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
8 changes: 5 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== GeoIP Detection ===
Contributors: benjaminpick
Tags: geoip, maxmind, geolocation, locator
Requires at least: 3.5
Requires at least: 4.0
Tested up to: 5.0
Requires PHP: 5.4
Stable tag: trunk
Expand Down Expand Up @@ -36,8 +36,9 @@ as a shortcode, or via CSS body classes. The city & country names are translated
* When enabled on the options page, it adds CSS classes to the body tag such as `geoip-province-HE`, `geoip-country-DE` and `geoip-continent-EU`.
* When enabled on the options page, the client IP respects a reverse proxy of the server.
* If you are using [Contact Form 7](https://wordpress.org/plugins/contact-form-7/), you can use these shortcodes:
* A select input with all countries, the detected country being selected by default `[geoip_detect2_countries mycountry]`
* Tracking information for the email text `[geoip_detect2_user_info]`
* A select input with all countries, the detected country being selected by default: `[geoip_detect2_countries mycountry]`
* A text input that is pre-filled with the detected city (or other property): `[geoip_detect2_text_input city property:city lang:fr id:id class:class default:Paris]`
* GeoIP information for the email text: `[geoip_detect2_user_info]`

See [API Documentation](https://github.com/yellowtree/geoip-detect/wiki/API-Documentation) for more info.

Expand Down Expand Up @@ -123,6 +124,7 @@ New: Shortcode for showing/hiding content!
* NEW: Add a ContactForm7-Tag `geoip_detect2_text_input` (see https://github.com/yellowtree/geoip-detect/wiki/API-Documentation#create-a-text-input-that-is-prefilled-with-a-geodetected-property)
* NEW: A wordpress filter allows overriding of the detected geo-information inside the `geoip_detect2_shortcode_show_if`-Shortcode. Use `geoip_detect2_record_information` instead if you want to override this information for all shortcodes and API calls.
* Updated Maxmind vendor code.
* Increased WP minimum version to 4.0

= 2.9.2 =
* FIX: ContactForm7-Mailtag disabled mailtags from other plugins.
Expand Down
2 changes: 1 addition & 1 deletion shortcode.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion upgrade-plugin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Copyright 2013-2018 Yellow Tree, Siegen, Germany
Copyright 2013-2019 Yellow Tree, Siegen, Germany
Author: Benjamin Pick (wp-geoip-detect| |posteo.de)
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion vendor/geoip2/geoip2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ The GeoIP2 PHP API uses [Semantic Versioning](http://semver.org/).

## Copyright and License ##

This software is Copyright (c) 2013-2018 by MaxMind, Inc.
This software is Copyright (c) 2013-2019 by MaxMind, Inc.

This is free software, licensed under the Apache License, Version 2.0.

0 comments on commit a8189dd

Please sign in to comment.