Plugin Directory

Changeset 1136332


Ignore:
Timestamp:
04/16/2015 04:36:14 PM (11 years ago)
Author:
2kblater.com
Message:

v2.0.0 BETA 7.1 php error fix

Location:
2kb-amazon-affiliates-store/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2kb-amazon-affiliates-store/trunk/lib/kbAmzApi.php

    r1128309 r1136332  
    6363        $response = wp_remote_get($requestUrl);
    6464        $content  = '';
    65         if (isset($response['body'])) {
     65        if (is_array($response) && isset($response['body'])) {
    6666            $content = $response['body'];
    6767        }
     
    7272            $data['success'] = false;
    7373            $data['error'] = 'Server connection error.';
     74            if ($response instanceof WP_Error) {
     75                $data['error'] .= $response->get_error_message();
     76            }
    7477        }
    7578        return $data;
  • 2kb-amazon-affiliates-store/trunk/plugin.php

    r1135668 r1136332  
    44 * Plugin URI: http://www.2kblater.com/?p=8318
    55 * Description: Amazon Affiliate Store Plugin With Variants, Cart, Checkout, Custom Themes, Variants and Versions. Easy to manage and setup. Sell wide range of physical and digital products imported from Amazon Affiliate API using 90 days cookie reference. This plugin is released with GPL2 license.
    6  * Version: 2.0.0 BETA 7
     6 * Version: 2.0.0 BETA 7.1
    77 * Author: 2kblater.com
    88 * Author URI: http://www.2kblater.com
     
    1616}
    1717
    18 define('KbAmazonVersion', '2.0.0 BETA 7');
     18define('KbAmazonVersion', '2.0.0 BETA 7.1');
    1919define('KbAmazonVersionNumber', 200);
    2020define('KbAmazonStoreFolderName',  pathinfo(dirname(__FILE__), PATHINFO_FILENAME));
Note: See TracChangeset for help on using the changeset viewer.