Version Description
- Fixed IP conflict with Flywheel
- Fixed wp_redirect race condition
Download this release
Release Info
Developer | cartpauj |
Plugin | Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 2.1.4
- app/models/PrliUtils.php +6 -0
- i18n/pretty-link.pot +3 -3
- pretty-link.php +1 -1
- readme.txt +6 -2
app/models/PrliUtils.php
CHANGED
@@ -383,6 +383,7 @@ class PrliUtils {
|
|
383 |
header("Expires: Mon, 07 Jul 1777 07:07:07 GMT"); // Battle of Hubbardton
|
384 |
header("X-Redirect-Powered-By: {$prli_edition} " . PRLI_VERSION . " http://prettylink.com");
|
385 |
|
|
|
386 |
switch($pretty_link->redirect_type) {
|
387 |
case '301':
|
388 |
wp_redirect("{$pretty_link_url}{$param_string}", 301);
|
@@ -422,6 +423,11 @@ class PrliUtils {
|
|
422 |
$ipaddress = $_SERVER['HTTP_FORWARDED'];
|
423 |
}
|
424 |
|
|
|
|
|
|
|
|
|
|
|
425 |
return $ipaddress;
|
426 |
}
|
427 |
|
383 |
header("Expires: Mon, 07 Jul 1777 07:07:07 GMT"); // Battle of Hubbardton
|
384 |
header("X-Redirect-Powered-By: {$prli_edition} " . PRLI_VERSION . " http://prettylink.com");
|
385 |
|
386 |
+
self::include_pluggables('wp_redirect');
|
387 |
switch($pretty_link->redirect_type) {
|
388 |
case '301':
|
389 |
wp_redirect("{$pretty_link_url}{$param_string}", 301);
|
423 |
$ipaddress = $_SERVER['HTTP_FORWARDED'];
|
424 |
}
|
425 |
|
426 |
+
$ips = explode(',', $ipaddress);
|
427 |
+
if(isset($ips[1])) {
|
428 |
+
$ipaddress = $ips[0]; //Fix for flywheel
|
429 |
+
}
|
430 |
+
|
431 |
return $ipaddress;
|
432 |
}
|
433 |
|
i18n/pretty-link.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Pretty Links package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Pretty Links 2.1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pretty-link\n"
|
7 |
-
"POT-Creation-Date: 2018-01-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -17,7 +17,7 @@ msgstr ""
|
|
17 |
msgid "Pretty Links | Manage Pretty Links"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#. #-#-#-#-# pretty-link.pot (Pretty Links 2.1.
|
21 |
#. Plugin Name of the plugin/theme
|
22 |
#: app/controllers/PrliAppController.php:37
|
23 |
#: app/controllers/PrliAppController.php:46 app/views/links/list.php:12
|
2 |
# This file is distributed under the same license as the Pretty Links package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Pretty Links 2.1.4\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pretty-link\n"
|
7 |
+
"POT-Creation-Date: 2018-01-23 22:44:08+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
msgid "Pretty Links | Manage Pretty Links"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#. #-#-#-#-# pretty-link.pot (Pretty Links 2.1.4) #-#-#-#-#
|
21 |
#. Plugin Name of the plugin/theme
|
22 |
#: app/controllers/PrliAppController.php:37
|
23 |
#: app/controllers/PrliAppController.php:46 app/views/links/list.php:12
|
pretty-link.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Pretty Links
|
4 |
Plugin URI: https://prettylinks.com/pl/plugin-uri
|
5 |
Description: Shrink, track and share any URL on the Internet from your WordPress website!
|
6 |
-
Version: 2.1.
|
7 |
Author: Blair Williams
|
8 |
Author URI: http://blairwilliams.com
|
9 |
Text Domain: pretty-link
|
3 |
Plugin Name: Pretty Links
|
4 |
Plugin URI: https://prettylinks.com/pl/plugin-uri
|
5 |
Description: Shrink, track and share any URL on the Internet from your WordPress website!
|
6 |
+
Version: 2.1.4
|
7 |
Author: Blair Williams
|
8 |
Author URI: http://blairwilliams.com
|
9 |
Text Domain: pretty-link
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: supercleanse
|
|
3 |
Donate link: https://prettylinks.com
|
4 |
Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, redirection, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, shorten, shortening, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, cloak, cloaking, slug, slugs, admin, administration, stats, statistics, stat, statistic, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
|
5 |
Requires at least: 4.7
|
6 |
-
Tested up to: 4.9
|
7 |
-
Stable tag: 2.1.
|
8 |
|
9 |
Shrink, beautify, track, manage and share any URL on or off of your WordPress website. Create links that look how you want using your own domain name!
|
10 |
|
@@ -66,6 +66,10 @@ http://blairwilliams.com/w7a
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
69 |
= 2.1.3 =
|
70 |
* Addressed security vulnerabilities
|
71 |
* Fixed content-type header
|
3 |
Donate link: https://prettylinks.com
|
4 |
Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, redirection, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, shorten, shortening, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, cloak, cloaking, slug, slugs, admin, administration, stats, statistics, stat, statistic, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
|
5 |
Requires at least: 4.7
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 2.1.4
|
8 |
|
9 |
Shrink, beautify, track, manage and share any URL on or off of your WordPress website. Create links that look how you want using your own domain name!
|
10 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 2.1.4 =
|
70 |
+
* Fixed IP conflict with Flywheel
|
71 |
+
* Fixed wp_redirect race condition
|
72 |
+
|
73 |
= 2.1.3 =
|
74 |
* Addressed security vulnerabilities
|
75 |
* Fixed content-type header
|