From 01794e7eba8a27c43396793bc776f6092888e511 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Mon, 30 Mar 2026 17:18:23 +0800 Subject: [PATCH] 3.2.2.1 Fix: Fatal error: Cannot redeclare trait ConvertKit_API\ConvertKit_API_Traits when other Kit Plugins are installed and active. --- CHANGELOG.md | 3 +++ languages/convertkit.pot | 4 ++-- readme.txt | 5 ++++- wp-convertkit.php | 6 +++--- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e89b0a0f6..a6fa36722 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### 3.2.2.1 2026-03-30 +* Fix: Fatal error: Cannot redeclare trait ConvertKit_API\ConvertKit_API_Traits + ### 3.2.2 2026-03-30 * Fix: Only run `get_subscriber_id_from_request` when viewing Pages with "Add a Tag" configured, to improve performance * Removed: Global `validate_and_store_subscriber_id` method; Custom Content and Member Content functionality performs necessary subscriber ID validation diff --git a/languages/convertkit.pot b/languages/convertkit.pot index 98fc7fbbb..85fffc255 100644 --- a/languages/convertkit.pot +++ b/languages/convertkit.pot @@ -2,14 +2,14 @@ # This file is distributed under the GPLv3 or later. msgid "" msgstr "" -"Project-Id-Version: Kit (formerly ConvertKit) 3.2.2\n" +"Project-Id-Version: Kit (formerly ConvertKit) 3.2.2.1\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-03-27T14:34:55+00:00\n" +"POT-Creation-Date: 2026-03-30T09:17:48+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: convertkit\n" diff --git a/readme.txt b/readme.txt index 43e23d4b0..f4edbc1c0 100755 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: email marketing, email newsletter, subscribers, landing page, membership Requires at least: 5.6 Tested up to: 6.9 Requires PHP: 7.1 -Stable tag: 3.2.2 +Stable tag: 3.2.2.1 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -343,6 +343,9 @@ The documentation covers newsletter form setup, landing page configuration, memb == Changelog == +### 3.2.2.1 2026-03-30 +* Fix: Fatal error: Cannot redeclare trait ConvertKit_API\ConvertKit_API_Traits + ### 3.2.2 2026-03-30 * Fix: Only run `get_subscriber_id_from_request` when viewing Pages with "Add a Tag" configured, to improve performance * Removed: Global `validate_and_store_subscriber_id` method; Custom Content and Member Content functionality performs necessary subscriber ID validation diff --git a/wp-convertkit.php b/wp-convertkit.php index d47efeb93..7c2f57242 100644 --- a/wp-convertkit.php +++ b/wp-convertkit.php @@ -9,7 +9,7 @@ * Plugin Name: Kit (formerly ConvertKit) * Plugin URI: https://kit.com/ * Description: Display Kit (formerly ConvertKit) email subscription forms, landing pages, products, broadcasts and more. - * Version: 3.2.2 + * Version: 3.2.2.1 * Author: Kit * Author URI: https://kit.com/ * Text Domain: convertkit @@ -27,12 +27,12 @@ define( 'CONVERTKIT_PLUGIN_FILE', plugin_basename( __FILE__ ) ); define( 'CONVERTKIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); define( 'CONVERTKIT_PLUGIN_PATH', __DIR__ ); -define( 'CONVERTKIT_PLUGIN_VERSION', '3.2.2' ); +define( 'CONVERTKIT_PLUGIN_VERSION', '3.2.2.1' ); define( 'CONVERTKIT_OAUTH_CLIENT_ID', 'HXZlOCj-K5r0ufuWCtyoyo3f688VmMAYSsKg1eGvw0Y' ); define( 'CONVERTKIT_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' ); // Load shared classes, if they have not been included by another Kit Plugin. -if ( ! trait_exists( 'ConvertKit_API_Traits' ) ) { +if ( ! trait_exists( 'ConvertKit_API\ConvertKit_API_Traits' ) ) { require_once CONVERTKIT_PLUGIN_PATH . '/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-api-traits.php'; } if ( ! class_exists( 'ConvertKit_API_V4' ) ) {