Version Description
- Bug Fix: Disable open new tab as a special case with Facebook Messenger browser which doesn't support it
Download this release
Release Info
Developer | jkohlbach |
Plugin | ThirstyAffiliates Affiliate Link Manager |
Version | 3.3.6 |
Comparing to | |
See all releases |
Code changes from version 3.3.5 to 3.3.6
- Helpers/Plugin_Constants.php +1 -1
- js/app/ta.js +19 -1
- readme.txt +5 -2
- thirstyaffiliates.php +2 -2
Helpers/Plugin_Constants.php
CHANGED
@@ -27,7 +27,7 @@ class Plugin_Constants {
|
|
27 |
// Plugin configuration constants
|
28 |
const TOKEN = 'ta';
|
29 |
const INSTALLED_VERSION = 'ta_installed_version';
|
30 |
-
const VERSION = '3.3.
|
31 |
const TEXT_DOMAIN = 'thirstyaffiliates';
|
32 |
const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
|
33 |
const META_DATA_PREFIX = '_ta_';
|
27 |
// Plugin configuration constants
|
28 |
const TOKEN = 'ta';
|
29 |
const INSTALLED_VERSION = 'ta_installed_version';
|
30 |
+
const VERSION = '3.3.6';
|
31 |
const TEXT_DOMAIN = 'thirstyaffiliates';
|
32 |
const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
|
33 |
const META_DATA_PREFIX = '_ta_';
|
js/app/ta.js
CHANGED
@@ -54,7 +54,7 @@ jQuery( document ).ready( function($) {
|
|
54 |
|
55 |
e.preventDefault();
|
56 |
|
57 |
-
if ( $link.prop( 'target' ) == '_blank' )
|
58 |
newWindow = window.open( '' , '_blank' );
|
59 |
}
|
60 |
|
@@ -78,6 +78,24 @@ jQuery( document ).ready( function($) {
|
|
78 |
} );
|
79 |
},
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
/**
|
82 |
* Function to check if the loaded link is a ThirstyAffiliates link or not.
|
83 |
*
|
54 |
|
55 |
e.preventDefault();
|
56 |
|
57 |
+
if ( $link.prop( 'target' ) == '_blank' && ! thirstyFunctions.disableNewWindow() )
|
58 |
newWindow = window.open( '' , '_blank' );
|
59 |
}
|
60 |
|
78 |
} );
|
79 |
},
|
80 |
|
81 |
+
/**
|
82 |
+
* Check if we need to disable new window for enhanced javascript redirects.
|
83 |
+
* This is intended to fix issue on browsing sites with FB/Messenger webview browser on iPhones.
|
84 |
+
*
|
85 |
+
* @since 3.3.6
|
86 |
+
*/
|
87 |
+
disableNewWindow : function() {
|
88 |
+
|
89 |
+
var strings = [ 'FBAN' , 'MessengerForiOS' , 'FBAV' ];
|
90 |
+
|
91 |
+
for ( var x in strings ) {
|
92 |
+
if ( navigator.userAgent.indexOf( strings[x] ) >= 0 )
|
93 |
+
return true;
|
94 |
+
}
|
95 |
+
|
96 |
+
return false;
|
97 |
+
},
|
98 |
+
|
99 |
/**
|
100 |
* Function to check if the loaded link is a ThirstyAffiliates link or not.
|
101 |
*
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link:
|
|
4 |
Tags: affiliate, link, affiliate link management, link cloaker, link redirect, shortlink, thirstyaffiliates, thirsty affiliates
|
5 |
Requires at least: 3.4
|
6 |
Requires PHP: 5.6
|
7 |
-
Tested up to: 4.9.
|
8 |
-
Stable tag:
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -159,6 +159,9 @@ See our [Knowledge Base](https://thirstyaffiliates.com/knowledge-base/?utm_sourc
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
162 |
= 3.3.5 =
|
163 |
* Improvement: Show warning on slug edit to inform users about consequences of editing slug in regards to already inserted links
|
164 |
* Bug Fix: When Statistics module is disabled hide the Enhanced JS Redirect option
|
4 |
Tags: affiliate, link, affiliate link management, link cloaker, link redirect, shortlink, thirstyaffiliates, thirsty affiliates
|
5 |
Requires at least: 3.4
|
6 |
Requires PHP: 5.6
|
7 |
+
Tested up to: 4.9.7
|
8 |
+
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 3.3.6 =
|
163 |
+
* Bug Fix: Disable open new tab as a special case with Facebook Messenger browser which doesn't support it
|
164 |
+
|
165 |
= 3.3.5 =
|
166 |
* Improvement: Show warning on slug edit to inform users about consequences of editing slug in regards to already inserted links
|
167 |
* Bug Fix: When Statistics module is disabled hide the Enhanced JS Redirect option
|
thirstyaffiliates.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: ThirstyAffiliates
|
4 |
* Plugin URI: http://thirstyaffiliates.com/
|
5 |
* Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
|
6 |
-
* Version: 3.3.
|
7 |
* Author: Rymera Web Co
|
8 |
* Author URI: https://rymera.com.au/
|
9 |
* Requires at least: 4.4.2
|
10 |
-
* Tested up to: 4.9.
|
11 |
*
|
12 |
* Text Domain: thirstyaffiliates
|
13 |
* Domain Path: /languages/
|
3 |
* Plugin Name: ThirstyAffiliates
|
4 |
* Plugin URI: http://thirstyaffiliates.com/
|
5 |
* Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
|
6 |
+
* Version: 3.3.6
|
7 |
* Author: Rymera Web Co
|
8 |
* Author URI: https://rymera.com.au/
|
9 |
* Requires at least: 4.4.2
|
10 |
+
* Tested up to: 4.9.7
|
11 |
*
|
12 |
* Text Domain: thirstyaffiliates
|
13 |
* Domain Path: /languages/
|