ThirstyAffiliates Affiliate Link Manager - Version 3.1.3

Version Description

  • Improvement: Add a small "Edit" link on read only fields on the List view
  • Bug Fix: When migrated, geolocation URLs still have the &amp ;. It needs to be changed to &
Download this release

Release Info

Developer jkohlbach
Plugin Icon 128x128 ThirstyAffiliates Affiliate Link Manager
Version 3.1.3
Comparing to
See all releases

Code changes from version 3.1.2 to 3.1.3

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.1.2';
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.1.3';
31
const TEXT_DOMAIN = 'thirstyaffiliates';
32
const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
33
const META_DATA_PREFIX = '_ta_';
Models/Affiliate_Links_CPT.php CHANGED
@@ -490,6 +490,8 @@ class Affiliate_Links_CPT implements Model_Interface , Initiable_Interface {
490
491
$thirstylink = $this->get_thirstylink_post( $post_id );
492
493
switch ( $column ) {
494
495
case 'link_id' :
@@ -501,12 +503,17 @@ class Affiliate_Links_CPT implements Model_Interface , Initiable_Interface {
501
break;
502
503
case 'cloaked_url' :
504
echo '<input style="width:100%;" type="text" value="' . $thirstylink->get_prop( 'permalink' ) . '" readonly>';
505
break;
506
507
case 'link_destination' :
508
echo '<input style="width:100%;" type="text" value="' . $thirstylink->get_prop( 'destination_url' ) . '" readonly>';
509
-
510
break;
511
512
}
490
491
$thirstylink = $this->get_thirstylink_post( $post_id );
492
493
+ $edit_link = get_edit_post_link( $post_id );
494
+
495
switch ( $column ) {
496
497
case 'link_id' :
503
break;
504
505
case 'cloaked_url' :
506
+ echo '<div class="ta-display-input-wrap">';
507
echo '<input style="width:100%;" type="text" value="' . $thirstylink->get_prop( 'permalink' ) . '" readonly>';
508
+ echo '<a href="' . $edit_link . '"><span class="dashicons dashicons-edit"></span></a>';
509
+ echo '</div>';
510
break;
511
512
case 'link_destination' :
513
+ echo '<div class="ta-display-input-wrap">';
514
echo '<input style="width:100%;" type="text" value="' . $thirstylink->get_prop( 'destination_url' ) . '" readonly>';
515
+ echo '<a href="' . $edit_link . '"><span class="dashicons dashicons-edit"></span></a>';
516
+ echo '</div>';
517
break;
518
519
}
Models/Migration.php CHANGED
@@ -629,7 +629,7 @@ class Migration implements Model_Interface , Activatable_Interface , Initiable_I
629
return $old_options;
630
631
if ( isset( $old_options[ 'gctuselegacyga' ] ) && $old_options[ 'gctuselegacyga' ] == 'on' ) {
632
-
633
update_option( 'tap_google_click_tracking_script' , 'legacy_ga' );
634
unset( $old_options[ 'gctuselegacyga' ] );
635
}
@@ -749,7 +749,7 @@ class Migration implements Model_Interface , Activatable_Interface , Initiable_I
749
foreach ( $temp_geolinks as $country => $data ) {
750
751
$key = trim( implode( ',' , $data[ 'countries' ] ) );
752
- $geolinks[ $key ] = $data[ 'destination_url' ];
753
}
754
755
// Return combined keys with geolinks data
629
return $old_options;
630
631
if ( isset( $old_options[ 'gctuselegacyga' ] ) && $old_options[ 'gctuselegacyga' ] == 'on' ) {
632
+
633
update_option( 'tap_google_click_tracking_script' , 'legacy_ga' );
634
unset( $old_options[ 'gctuselegacyga' ] );
635
}
749
foreach ( $temp_geolinks as $country => $data ) {
750
751
$key = trim( implode( ',' , $data[ 'countries' ] ) );
752
+ $geolinks[ $key ] = esc_url_raw( str_replace( array( '&amp;amp;' , '&amp;' ) , '&' , $data[ 'destination_url' ] ) );
753
}
754
755
// Return combined keys with geolinks data
Models/Script_Loader.php CHANGED
@@ -225,6 +225,9 @@ class Script_Loader implements Model_Interface {
225
226
}
227
228
}
229
230
if ( get_option( 'ta_guided_tour_status' ) == 'open' && array_key_exists( $screen->id , $this->_guided_tour->get_screens() ) ) {
225
226
}
227
228
+ } elseif ( $screen->id === 'edit-thirstylink' ) {
229
+
230
+ wp_enqueue_style( 'tap_affiliate_link_list' , $this->_constants->CSS_ROOT_URL() . 'admin/ta-affiliate-link-list.css' , array() , Plugin_Constants::VERSION , 'all' );
231
}
232
233
if ( get_option( 'ta_guided_tour_status' ) == 'open' && array_key_exists( $screen->id , $this->_guided_tour->get_screens() ) ) {
css/admin/ta-affiliate-link-list.css ADDED
@@ -0,0 +1,29 @@
1
+ .ta-display-input-wrap {
2
+ position: relative;
3
+ }
4
+ .ta-display-input-wrap a {
5
+ position: absolute;
6
+ top: 2px;
7
+ right: -16px;
8
+ display: none;
9
+ width: 15px;
10
+ height: 15px;
11
+ background: #0273aa;
12
+ color: #fff;
13
+ border-radius: 100px;
14
+ padding: 4px;
15
+ text-align: center;
16
+ opacity: 0.85;
17
+ }
18
+ .ta-display-input-wrap a .dashicons {
19
+ font-size: 16px;
20
+ line-height: 16px;
21
+ width: auto;
22
+ height: auto;
23
+ }
24
+ .ta-display-input-wrap:hover a {
25
+ display: block;
26
+ }
27
+ .ta-display-input-wrap:hover a:hover {
28
+ opacity: 1.0;
29
+ }
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.8.2
8
- Stable tag: 3.1.2
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
@@ -159,6 +159,10 @@ See our [Knowledge Base](https://thirstyaffiliates.com/knowledge-base/?utm_sourc
159
160
== Changelog ==
161
162
= 3.1.2 =
163
* Bug Fix: Fix link fixer script to detect links with either http or https protocol
164
* Bug Fix: If all modules requiring ta.js are off dequeue it
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.1
8
+ Stable tag: 3.1.3
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
159
160
== Changelog ==
161
162
+ = 3.1.3 =
163
+ * Improvement: Add a small "Edit" link on read only fields on the List view
164
+ * Bug Fix: When migrated, geolocation URLs still have the &amp ;. It needs to be changed to &
165
+
166
= 3.1.2 =
167
* Bug Fix: Fix link fixer script to detect links with either http or https protocol
168
* Bug Fix: If all modules requiring ta.js are off dequeue it
thirstyaffiliates.php CHANGED
@@ -3,7 +3,7 @@
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.1.2
7
* Author: Rymera Web Co
8
* Author URI: https://rymera.com.au/
9
* Requires at least: 4.4.2
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.1.3
7
* Author: Rymera Web Co
8
* Author URI: https://rymera.com.au/
9
* Requires at least: 4.4.2