Amazon Associates Link Builder - Version 1.5.4

Version Description

  • January 26, 2018 =
  • Fix: In case of failed call to Product-Advertising API, Fatal error thrown.
Download this release

Release Info

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

Code changes from version 1.5.3 to 1.5.4

aalb_config.php CHANGED
@@ -13,7 +13,7 @@ and limitations under the License.
13
  */
14
 
15
  //version
16
- define( 'AALB_PLUGIN_CURRENT_VERSION', '1.5.3' );
17
 
18
  //Version no. with multi locale settings page
19
  define( 'AALB_MULTI_LOCALE_SETTINGS_PLUGIN_VERSION', '1.4.12' );
13
  */
14
 
15
  //version
16
+ define( 'AALB_PLUGIN_CURRENT_VERSION', '1.5.4' );
17
 
18
  //Version no. with multi locale settings page
19
  define( 'AALB_MULTI_LOCALE_SETTINGS_PLUGIN_VERSION', '1.4.12' );
amazon-associates-link-builder.php CHANGED
@@ -7,7 +7,7 @@
7
  /*
8
  Plugin Name: Amazon Associates Link Builder
9
  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.
10
- Version: 1.5.3
11
  Author: Amazon Associates Program
12
  Author URI: https://affiliate-program.amazon.com/
13
  License: GPLv2
7
  /*
8
  Plugin Name: Amazon Associates Link Builder
9
  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.
10
+ Version: 1.5.4
11
  Author: Amazon Associates Program
12
  Author URI: https://affiliate-program.amazon.com/
13
  License: GPLv2
includes/aalb_remote_loader.php CHANGED
@@ -67,7 +67,7 @@ class Aalb_Remote_Loader {
67
  if( strpos ( $error_message, CURL_ERROR_TIMEOUT_STRING ) !== false ) {
68
  throw new Exception( HTTP_TIME_OUT );
69
  }
70
- throw new Exception( 'HTTP Request failed! %s', 'amazon-associates-link-builder' );
71
  }
72
  $code = $response['response']['code'];
73
  if ( $code != HTTP_SUCCESS ) {
@@ -75,7 +75,7 @@ class Aalb_Remote_Loader {
75
  }
76
  $response_body = wp_remote_retrieve_body( $response );
77
  if ( ! isset( $response_body ) || trim( $response_body ) === '' ) {
78
- throw new Exception( 'Response body is empty', 'amazon-associates-link-builder' );
79
  }
80
 
81
  return $response_body;
67
  if( strpos ( $error_message, CURL_ERROR_TIMEOUT_STRING ) !== false ) {
68
  throw new Exception( HTTP_TIME_OUT );
69
  }
70
+ throw new Exception( 'HTTP Request failed!' . $error_message );
71
  }
72
  $code = $response['response']['code'];
73
  if ( $code != HTTP_SUCCESS ) {
75
  }
76
  $response_body = wp_remote_retrieve_body( $response );
77
  if ( ! isset( $response_body ) || trim( $response_body ) === '' ) {
78
+ throw new Exception( 'Response body is empty' );
79
  }
80
 
81
  return $response_body;
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: 4.9.2
6
- Stable tag: 1.5.3
7
  Requires PHP: 5.4.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -116,6 +116,9 @@ You can see your earnings and other reports from the respective country Associat
116
 
117
  == Changelog ==
118
 
 
 
 
119
  = 1.5.3 - January 24, 2018 =
120
  * Fix: Plugin failed with a FATAL error on activation/update for users on PHP version below 5.4.0, instead of the expected graceful de-activation.
121
  * Fix: Search button not working for few associates.
@@ -230,6 +233,9 @@ You can see your earnings and other reports from the respective country Associat
230
 
231
  == Upgrade Notice ==
232
 
 
 
 
233
  = 1.5.3 - January 23, 2018 =
234
  Fixed Fatal error for users on PHP version <5.4.0 along with search-button, multi-tab issues faced by few associates.
235
 
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: 4.9.2
6
+ Stable tag: 1.5.4
7
  Requires PHP: 5.4.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
116
 
117
  == Changelog ==
118
 
119
+ = 1.5.4 - January 26, 2018 =
120
+ * Fix: In case of failed call to Product-Advertising API, Fatal error thrown.
121
+
122
  = 1.5.3 - January 24, 2018 =
123
  * Fix: Plugin failed with a FATAL error on activation/update for users on PHP version below 5.4.0, instead of the expected graceful de-activation.
124
  * Fix: Search button not working for few associates.
233
 
234
  == Upgrade Notice ==
235
 
236
+ = 1.5.4 - January 26, 2018 =
237
+ * Fix: In case of failed call to Product-Advertising API, Fatal error thrown.
238
+
239
  = 1.5.3 - January 23, 2018 =
240
  Fixed Fatal error for users on PHP version <5.4.0 along with search-button, multi-tab issues faced by few associates.
241