ThirstyAffiliates Affiliate Link Manager - Version 3.10.9

Version Description

  • Bug Fix: Security fixes
Download this release

Release Info

Developer caseproof
Plugin Icon 128x128 ThirstyAffiliates Affiliate Link Manager
Version 3.10.9
Comparing to
See all releases

Code changes from version 3.10.8 to 3.10.9

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.10.8';
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.10.9';
31
  const TEXT_DOMAIN = 'thirstyaffiliates';
32
  const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
33
  const META_DATA_PREFIX = '_ta_';
Models/Link_Picker.php CHANGED
@@ -322,7 +322,7 @@ class Link_Picker implements Model_Interface , Initiable_Interface {
322
  }
323
 
324
  } else
325
- $result_markup .= '<li class="no-links-found">' . __( 'No affiliate links found' , 'thirstyaffiliates' ) . '</li>';
326
 
327
  return $result_markup;
328
  }
322
  }
323
 
324
  } else
325
+ $result_markup .= '<li class="no-links-found">' . esc_html__( 'No affiliate links found' , 'thirstyaffiliates' ) . '</li>';
326
 
327
  return $result_markup;
328
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: affiliate, link, affiliate link management, link cloaker, link redirect, s
5
  Requires at least: 5.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.9
8
- Stable tag: 3.10.8
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.10.8 =
163
  * Bug Fix: Security fixes
164
 
5
  Requires at least: 5.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.9
8
+ Stable tag: 3.10.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
159
 
160
  == Changelog ==
161
 
162
+ = 3.10.9 =
163
+ * Bug Fix: Security fixes
164
+
165
  = 3.10.8 =
166
  * Bug Fix: Security fixes
167
 
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.10.8
7
  * Author: Caseproof
8
  * Author URI: https://caseproof.com/
9
  * Requires at least: 5.0
@@ -116,11 +116,6 @@ class ThirstyAffiliates extends Abstract_Main_Plugin_Class {
116
  // Display notice that plugin dependency is not present.
117
  add_action( 'admin_notices' , array( $this , 'missing_plugin_dependencies_notice' ) );
118
 
119
- } elseif ( $this->_check_plugin_dependency_version_requirements() !== true ) {
120
-
121
- // Display notice that some dependent plugin did not meet the required version.
122
- add_action( 'admin_notices' , array( $this , 'invalid_plugin_dependency_version_notice' ) );
123
-
124
  } else {
125
 
126
  // Lock 'n Load
@@ -164,46 +159,10 @@ class ThirstyAffiliates extends Abstract_Main_Plugin_Class {
164
 
165
  $this->failed_dependencies = array();
166
 
167
-
168
- // Sample below
169
- /*
170
- if ( !is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
171
-
172
- $this->failed_dependencies[] = array(
173
- 'plugin-key' => 'woocommerce',
174
- 'plugin-name' => 'WooCommerce', // We don't translate this coz this is the plugin name
175
- 'plugin-base-name' => 'woocommerce/woocommerce.php'
176
- );
177
-
178
- }
179
- */
180
-
181
  return !empty( $this->failed_dependencies ) ? $this->failed_dependencies : true;
182
 
183
  }
184
 
185
- /**
186
- * Check plugin dependency version requirements.
187
- *
188
- * @since 3.0.0
189
- * @access private
190
- *
191
- * @return boolean True if plugin dependency version requirement is meet, False otherwise.
192
- */
193
- private function _check_plugin_dependency_version_requirements() {
194
-
195
- // Sample below
196
- /*
197
- $teo_plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/timed-email-offers/timed-email-offers.php' );
198
-
199
- // TEOP 3.0.0 requires TEO 1.1.0
200
- return version_compare( $teo_plugin_data[ 'Version' ] , '1.1.0' , ">=" );
201
- */
202
-
203
- return true;
204
-
205
- }
206
-
207
  /**
208
  * Add notice to notify users that some plugin dependencies of this plugin is missing.
209
  *
@@ -241,28 +200,6 @@ class ThirstyAffiliates extends Abstract_Main_Plugin_Class {
241
 
242
  }
243
 
244
- /**
245
- * Add notice to notify user that some plugin dependencies did not meet the required version for the current version of this plugin.
246
- *
247
- * @since 3.0.0
248
- * @access public
249
- */
250
- public function invalid_plugin_dependency_version_notice() {
251
-
252
- // Sample below
253
- /*
254
- $update_text = sprintf( __( '<a href="%1$s">Click here to update Timed Email Offers &rarr;</a>' , 'timed-email-offers-premium' ) , wp_nonce_url( 'update.php?action=upgrade-plugin&plugin=timed-email-offers' , 'upgrade-plugin_timed-email-offers' ) ); ?>
255
-
256
- <div class="error">
257
- <p><?php echo sprintf( __( 'Please ensure you have the latest version of <a href="%1$s" target="_blank">Timed Email Offers</a> plugin installed and activated.' , 'timed-email-offers-premium' ) , 'http://wordpress.org/plugins/timed-email-offers/' ); ?></p>
258
- <p><?php echo $update_text; ?></p>
259
- </div>
260
-
261
- <?php
262
- */
263
-
264
- }
265
-
266
  /**
267
  * Function that get's executed always whether dependecy are present/valid or not.
268
  *
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.10.9
7
  * Author: Caseproof
8
  * Author URI: https://caseproof.com/
9
  * Requires at least: 5.0
116
  // Display notice that plugin dependency is not present.
117
  add_action( 'admin_notices' , array( $this , 'missing_plugin_dependencies_notice' ) );
118
 
 
 
 
 
 
119
  } else {
120
 
121
  // Lock 'n Load
159
 
160
  $this->failed_dependencies = array();
161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  return !empty( $this->failed_dependencies ) ? $this->failed_dependencies : true;
163
 
164
  }
165
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  /**
167
  * Add notice to notify users that some plugin dependencies of this plugin is missing.
168
  *
200
 
201
  }
202
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  /**
204
  * Function that get's executed always whether dependecy are present/valid or not.
205
  *
views/linkpicker/advance-link-picker.php CHANGED
@@ -29,7 +29,7 @@
29
 
30
  <div class="results-panel">
31
  <ul class="results-list" data-htmleditor="<?php echo esc_attr( $html_editor ); ?>">
32
- <?php echo $result_markup; // phpcs:ignore WordPress.Security.EscapeOutput ?>
33
  </ul>
34
  <a class="load-more-results" href="#">
35
  <span class="spinner"><i style="background-image: url(<?php echo esc_url( $this->_constants->IMAGES_ROOT_URL() . 'spinner.gif' ); ?>)"></i> <?php esc_html_e( 'Fetching...' , 'thirstyaffiliates' ); ?></span>
29
 
30
  <div class="results-panel">
31
  <ul class="results-list" data-htmleditor="<?php echo esc_attr( $html_editor ); ?>">
32
+ <?php echo wp_kses_post( $result_markup ); ?>
33
  </ul>
34
  <a class="load-more-results" href="#">
35
  <span class="spinner"><i style="background-image: url(<?php echo esc_url( $this->_constants->IMAGES_ROOT_URL() . 'spinner.gif' ); ?>)"></i> <?php esc_html_e( 'Fetching...' , 'thirstyaffiliates' ); ?></span>