Plugin Directory

Changeset 3111693


Ignore:
Timestamp:
07/03/2024 12:37:57 PM (20 months ago)
Author:
tradetracker
Message:

Fixed possible wrong response type from WooCommerce products endpoint

Location:
tradetracker-connect
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • tradetracker-connect/tags/2.2.6/README.md

    r3111230 r3111693  
    55Requires PHP: 7.4
    66Tested up to: 6.5
    7 Stable tag: 2.2.5
     7Stable tag: 2.2.6
    88License: GPLv3 or later
    99
     
    9090
    9191== Changelog ==
     92= 2.2.6 =
     93- Added return type check for product list endpoint
     94
    9295= 2.2.5 =
    9396- Removed legacy WooCommerce API requirement
  • tradetracker-connect/tags/2.2.6/README.txt

    r3111230 r3111693  
    55Requires PHP: 7.4
    66Tested up to: 6.5
    7 Stable tag: 2.2.5
     7Stable tag: 2.2.6
    88License: GPLv3 or later
    99
     
    9090
    9191== Changelog ==
     92= 2.2.6 =
     93- Added return type check for product list endpoint
     94
    9295= 2.2.5 =
    9396- Removed legacy WooCommerce API requirement
  • tradetracker-connect/tags/2.2.6/includes/class-tradetracker-connect-feed.php

    r3111230 r3111693  
    151151        if (!empty($api_products)) {
    152152            foreach ($api_products as $api_product) {
     153                if (!is_array($api_product) && !is_object($api_product)) {
     154                    if (defined('WP_DEBUG') && WP_DEBUG) {
     155                        error_log('Invalid product type: ' . gettype($api_product). ': ' . (string) $api_product);
     156                    }
     157                    continue;
     158                }
    153159                $product = [];
    154160                foreach ($api_product as $field => $value) {
  • tradetracker-connect/tags/2.2.6/tradetracker-connect.php

    r3111230 r3111693  
    1515 * Plugin Name:       TradeTracker Connect
    1616 * Description:       Seamless WordPress integration for TradeTracker's Merchants.
    17  * Version:           2.2.5
     17 * Version:           2.2.6
    1818 * Author:            TradeTracker.com
    1919 * Author URI:        https://tradetracker.com
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('TRADETRACKER_CONNECT_VERSION', '2.2.5');
     38define('TRADETRACKER_CONNECT_VERSION', '2.2.6');
    3939define('TRADETRACKER_CONNECT_URL', plugin_dir_url(__FILE__));
    4040define('TRADETRACKER_CONNECT_PATH', plugin_dir_path(__FILE__));
  • tradetracker-connect/trunk/README.md

    r3111230 r3111693  
    55Requires PHP: 7.4
    66Tested up to: 6.5
    7 Stable tag: 2.2.5
     7Stable tag: 2.2.6
    88License: GPLv3 or later
    99
     
    9090
    9191== Changelog ==
     92= 2.2.6 =
     93- Added return type check for product list endpoint
     94
    9295= 2.2.5 =
    9396- Removed legacy WooCommerce API requirement
  • tradetracker-connect/trunk/README.txt

    r3111230 r3111693  
    55Requires PHP: 7.4
    66Tested up to: 6.5
    7 Stable tag: 2.2.5
     7Stable tag: 2.2.6
    88License: GPLv3 or later
    99
     
    9090
    9191== Changelog ==
     92= 2.2.6 =
     93- Added return type check for product list endpoint
     94
    9295= 2.2.5 =
    9396- Removed legacy WooCommerce API requirement
  • tradetracker-connect/trunk/includes/class-tradetracker-connect-feed.php

    r3111230 r3111693  
    151151        if (!empty($api_products)) {
    152152            foreach ($api_products as $api_product) {
     153                if (!is_array($api_product) && !is_object($api_product)) {
     154                    if (defined('WP_DEBUG') && WP_DEBUG) {
     155                        error_log('Invalid product type: ' . gettype($api_product). ': ' . (string) $api_product);
     156                    }
     157                    continue;
     158                }
    153159                $product = [];
    154160                foreach ($api_product as $field => $value) {
  • tradetracker-connect/trunk/tradetracker-connect.php

    r3111230 r3111693  
    1515 * Plugin Name:       TradeTracker Connect
    1616 * Description:       Seamless WordPress integration for TradeTracker's Merchants.
    17  * Version:           2.2.5
     17 * Version:           2.2.6
    1818 * Author:            TradeTracker.com
    1919 * Author URI:        https://tradetracker.com
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('TRADETRACKER_CONNECT_VERSION', '2.2.5');
     38define('TRADETRACKER_CONNECT_VERSION', '2.2.6');
    3939define('TRADETRACKER_CONNECT_URL', plugin_dir_url(__FILE__));
    4040define('TRADETRACKER_CONNECT_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.