Amazon Associates Link Builder - Version 1.9.3

Version Description

  • August 05, 2019 =
  • Fix : Malformed URL for tracking IDs starting with numbers in v1.9.2.
Download this release

Release Info

Developer amazonlinkbuilder
Plugin Icon 128x128 Amazon Associates Link Builder
Version 1.9.3
Comparing to
See all releases

Code changes from version 1.9.2 to 1.9.3

amazon-associates-link-builder.php CHANGED
@@ -8,7 +8,7 @@
8
  /*
9
  Plugin Name: Amazon Associates Link Builder
10
  Description: Amazon Associates Link Builder is the official free Amazon Associates Program plugin for WordPress. The plugin enables you to search for products in the Amazon catalog, access real-time price and availability information, and easily create links in your posts to products on Amazon.com. You will be able to generate text links, create custom ad units, or take advantage of out-of-the-box widgets that we’ve designed and included with the plugin.
11
- Version: 1.9.2
12
  Author: Amazon Associates Program
13
  Author URI: https://affiliate-program.amazon.com/
14
  License: GPLv2
8
  /*
9
  Plugin Name: Amazon Associates Link Builder
10
  Description: Amazon Associates Link Builder is the official free Amazon Associates Program plugin for WordPress. The plugin enables you to search for products in the Amazon catalog, access real-time price and availability information, and easily create links in your posts to products on Amazon.com. You will be able to generate text links, create custom ad units, or take advantage of out-of-the-box widgets that we’ve designed and included with the plugin.
11
+ Version: 1.9.3
12
  Author: Amazon Associates Program
13
  Author URI: https://affiliate-program.amazon.com/
14
  License: GPLv2
constants/plugin_constants.php CHANGED
@@ -23,7 +23,7 @@ namespace AmazonAssociatesLinkBuilder\constants;
23
  */
24
 
25
  class Plugin_Constants {
26
- const PLUGIN_CURRENT_VERSION = '1.9.2';
27
  //Version no. with multi locale settings page
28
  const MULTI_LOCALE_SETTINGS_PLUGIN_VERSION = '1.4.12';
29
  const WORDPRESS_REQUEST_TIMEOUT_IN_MS = 40000;
23
  */
24
 
25
  class Plugin_Constants {
26
+ const PLUGIN_CURRENT_VERSION = '1.9.3';
27
  //Version no. with multi locale settings page
28
  const MULTI_LOCALE_SETTINGS_PLUGIN_VERSION = '1.4.12';
29
  const WORDPRESS_REQUEST_TIMEOUT_IN_MS = 40000;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: amazonlinkbuilder
3
  Tags: Amazon, Affiliate, Associates, Amazon Associates, Amazon Associate, Product Advertising API, Amazon API, Amazon Link, Amazon Ad, Amazon Affiliate, eCommerce
4
  Requires at least: 3.0.1
5
  Tested up to: 5.0.3
6
- Stable tag: 1.9.2
7
  Requires PHP: 5.4.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -124,6 +124,9 @@ You can see your earnings and other reports from the respective country Associat
124
 
125
  == Changelog ==
126
 
 
 
 
127
  = 1.9.2 - February 08, 2019 =
128
  * Fix : Clicks not appearing for v1.9.1.
129
 
@@ -263,6 +266,9 @@ You can see your earnings and other reports from the respective country Associat
263
 
264
  == Upgrade Notice ==
265
 
 
 
 
266
  = 1.9.2 =
267
  * Fix : Clicks not appearing for v1.9.1.
268
 
3
  Tags: Amazon, Affiliate, Associates, Amazon Associates, Amazon Associate, Product Advertising API, Amazon API, Amazon Link, Amazon Ad, Amazon Affiliate, eCommerce
4
  Requires at least: 3.0.1
5
  Tested up to: 5.0.3
6
+ Stable tag: 1.9.3
7
  Requires PHP: 5.4.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
124
 
125
  == Changelog ==
126
 
127
+ = 1.9.3 - August 05, 2019 =
128
+ * Fix : Malformed URL for tracking IDs starting with numbers in v1.9.2.
129
+
130
  = 1.9.2 - February 08, 2019 =
131
  * Fix : Clicks not appearing for v1.9.1.
132
 
266
 
267
  == Upgrade Notice ==
268
 
269
+ = 1.9.3 - August 05, 2019 =
270
+ * Fix : Malformed URL for tracking IDs starting with numbers in v1.9.2.
271
+
272
  = 1.9.2 =
273
  * Fix : Clicks not appearing for v1.9.1.
274
 
rendering/xml_manipulator.php CHANGED
@@ -196,10 +196,10 @@ class Xml_Manipulator {
196
  */
197
  public function modify_xml( $response, $store_id, $link_code ) {
198
  //use wordpress linkcode
199
- $response = preg_replace( "/linkCode(%3D|=)\w{1,3}/", "linkCode$1" . $link_code, $response );
200
 
201
  //replace store id
202
- return preg_replace( "((tag=)[^&]+(&))", "$1" . $store_id . "$2", $response );
203
  }
204
 
205
  /**
196
  */
197
  public function modify_xml( $response, $store_id, $link_code ) {
198
  //use wordpress linkcode
199
+ $response = preg_replace( "/linkCode(%3D|=)\w{1,3}/", 'linkCode${1}' . $link_code, $response );
200
 
201
  //replace store id
202
+ return preg_replace( "((tag=)[^&]+(&))", '${1}' . $store_id . '${2}', $response );
203
  }
204
 
205
  /**
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit8921d01ddb388c8b5331e3b492ab5f2c::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInite185cf27bfa8afeb8fe293185b369b4c::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit8921d01ddb388c8b5331e3b492ab5f2c
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit8921d01ddb388c8b5331e3b492ab5f2c
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit8921d01ddb388c8b5331e3b492ab5f2c', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit8921d01ddb388c8b5331e3b492ab5f2c', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit8921d01ddb388c8b5331e3b492ab5f2c::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInite185cf27bfa8afeb8fe293185b369b4c
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInite185cf27bfa8afeb8fe293185b369b4c', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInite185cf27bfa8afeb8fe293185b369b4c', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInite185cf27bfa8afeb8fe293185b369b4c::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit8921d01ddb388c8b5331e3b492ab5f2c
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'M' =>
@@ -64,10 +64,10 @@ class ComposerStaticInit8921d01ddb388c8b5331e3b492ab5f2c
64
  public static function getInitializer(ClassLoader $loader)
65
  {
66
  return \Closure::bind(function () use ($loader) {
67
- $loader->prefixLengthsPsr4 = ComposerStaticInit8921d01ddb388c8b5331e3b492ab5f2c::$prefixLengthsPsr4;
68
- $loader->prefixDirsPsr4 = ComposerStaticInit8921d01ddb388c8b5331e3b492ab5f2c::$prefixDirsPsr4;
69
- $loader->prefixesPsr0 = ComposerStaticInit8921d01ddb388c8b5331e3b492ab5f2c::$prefixesPsr0;
70
- $loader->classMap = ComposerStaticInit8921d01ddb388c8b5331e3b492ab5f2c::$classMap;
71
 
72
  }, null, ClassLoader::class);
73
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInite185cf27bfa8afeb8fe293185b369b4c
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'M' =>
64
  public static function getInitializer(ClassLoader $loader)
65
  {
66
  return \Closure::bind(function () use ($loader) {
67
+ $loader->prefixLengthsPsr4 = ComposerStaticInite185cf27bfa8afeb8fe293185b369b4c::$prefixLengthsPsr4;
68
+ $loader->prefixDirsPsr4 = ComposerStaticInite185cf27bfa8afeb8fe293185b369b4c::$prefixDirsPsr4;
69
+ $loader->prefixesPsr0 = ComposerStaticInite185cf27bfa8afeb8fe293185b369b4c::$prefixesPsr0;
70
+ $loader->classMap = ComposerStaticInite185cf27bfa8afeb8fe293185b369b4c::$classMap;
71
 
72
  }, null, ClassLoader::class);
73
  }