From 3f0582e9e0b331ff1c5952a986a2a3527e3c27f2 Mon Sep 17 00:00:00 2001 From: Mercado Pago Date: Thu, 7 Nov 2024 12:49:11 +0000 Subject: [PATCH] Release v7.8.2 --- CHANGELOG.md | 4 ++++ changelog.log | 4 ++++ package.json | 2 +- readme.txt | 14 +++----------- src/Transactions/AbstractTransaction.php | 2 +- src/WoocommerceMercadoPago.php | 2 +- woocommerce-mercadopago.php | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4756ffa1..f5ea5cc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [7.8.2] - 2024-11-07 +### Fixed +- **Initializing array for transaction listItems** to fix acessing not initialized property. + ## [7.8.1] - 2024-10-07 ### Added diff --git a/changelog.log b/changelog.log index 20d837db..bb58bd98 100644 --- a/changelog.log +++ b/changelog.log @@ -1,6 +1,10 @@ CHANGELOG: == Changelog == += v7.8.2 (07/11/2024) = +* Fixed: +- Initializing array for transaction listItems to fix acessing not initialized property. + = v7.8.1 (07/10/2024) = * Added: - Silence is golden directive implemented to enhance security for WordPress sites. diff --git a/package.json b/package.json index 4e0fb5dd..1d523969 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "woocommerce-mercadopago", "description": "Woocommerce MercadoPago Payment Gateway", - "version": "7.8.1", + "version": "7.8.2", "main": "main.js", "repository": { "type": "git", diff --git a/readme.txt b/readme.txt index efbe8c95..97e1468c 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce Requires at least: 6.3 Tested up to: 6.6 Requires PHP: 7.4 -Stable tag: 7.8.1 +Stable tag: 7.8.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -135,16 +135,8 @@ Set up both the plugin and the checkouts you want to activate on your payment av Check out our official documentation for more information on the specific fields to configure. == Changelog == -= v7.8.1 (07/10/2024) = -* Added: -- Silence is golden directive implemented to enhance security for WordPress sites. - -* Changed: -- Modified the way asset's are loaded into the store. -- Sending new field to get the plugin version from the stores to improve onboarding. - += v7.8.2 (07/11/2024) = * Fixed: -- Resolved issues with loading minified CSS and JS files in debugging environments. -- Refined translations for ES-all languages. +- Initializing array for transaction listItems to fix acessing not initialized property. [See changelog for all versions](https://github.com/mercadopago/cart-woocommerce/blob/main/CHANGELOG.md). diff --git a/src/Transactions/AbstractTransaction.php b/src/Transactions/AbstractTransaction.php index 5a7c02e3..e808a08d 100644 --- a/src/Transactions/AbstractTransaction.php +++ b/src/Transactions/AbstractTransaction.php @@ -45,7 +45,7 @@ abstract class AbstractTransaction protected float $orderTotal; - protected array $listOfItems; + protected array $listOfItems = []; /** * Abstract Transaction constructor diff --git a/src/WoocommerceMercadoPago.php b/src/WoocommerceMercadoPago.php index ccdfc512..16a9a497 100644 --- a/src/WoocommerceMercadoPago.php +++ b/src/WoocommerceMercadoPago.php @@ -32,7 +32,7 @@ class WoocommerceMercadoPago { - private const PLUGIN_VERSION = '7.8.1'; + private const PLUGIN_VERSION = '7.8.2'; private const PLUGIN_MIN_PHP = '7.4'; diff --git a/woocommerce-mercadopago.php b/woocommerce-mercadopago.php index 00f3be5c..5d30f610 100644 --- a/woocommerce-mercadopago.php +++ b/woocommerce-mercadopago.php @@ -4,7 +4,7 @@ * Plugin Name: Mercado Pago * Plugin URI: https://github.com/mercadopago/cart-woocommerce * Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account. - * Version: 7.8.1 + * Version: 7.8.2 * Author: Mercado Pago * Author URI: https://developers.mercadopago.com/ * Text Domain: woocommerce-mercadopago