From ddb659ced4a40fe7695a5ed14daad8b8ab705a0b Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Mon, 17 Oct 2022 16:06:35 +0100 Subject: [PATCH 1/5] Updated readme and version to 2.0.0 --- readme.txt | 15 +++++++++++++-- wp-convertkit.php | 4 ++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/readme.txt b/readme.txt index f7b6f6ed2..a11beb8d3 100755 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: email marketing, email newsletter, newsletter, convertkit Requires at least: 5.0 Tested up to: 6.0.2 Requires PHP: 5.6.20 -Stable tag: 1.9.8.5 +Stable tag: 2.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -33,7 +33,7 @@ Sign up forms can be configured to: Embedding ConvertKit forms on your WordPress web site with the ConvertKit Plugin is quick and simple: - Choose a default form to be displayed below each individual Post Type (Pages, Posts and other public Post Types, such as WooCommerce Products) -- Choose a specific form to be dispalyed below a specific Page, Post or custom post type +- Choose a specific form to be displayed below a specific Page, Post or custom post type - Turn off form embedding at both site wide and/or individual Page/Post level For greater control, ConvertKit forms can be displayed in specific sections of your WordPress site's content, sidebars and footers by: @@ -56,6 +56,10 @@ Embed existing email newsletters on your WordPress web site, ensuring visitors n - Using the ConvertKit Broadcasts block in Gutenberg - Using the `[convertkit_broadcasts]` shortcode in the Classic Editor += Sell Products = + +Embed buttons, or link text, to sell your ConvertKit Products in seconds - whether digital goods, paid newsletters, coaching and more. + = Plugin Integrations = With the ConvertKit for WordPress Plugin, you also get: @@ -113,6 +117,13 @@ Full Plugin documentation can be found [here](https://help.convertkit.com/en/art == Changelog == +### 2.0.0 2022-10-xx +* Added: ConvertKit Products Block, to output a button linking to a ConvertKit Product or Tip Jar +* Added: ConvertKit Products Shortcode, to output a button linking to a ConvertKit Product or Tip Jar +* Added: Gutenberg: Option to link text or button to a ConvertKit Product or Tip Jar +* Added: Classic Editor: Option to link text or button to a ConvertKit Product or Tip Jar +* Added: Settings: Improved UI + ### 1.9.8.5 2022-10-03 * Added: Broadcasts: Shortcode: Options to specify background, text and link colors * Added: Broadcasts: Elementor: Options to specify background, text and link colors diff --git a/wp-convertkit.php b/wp-convertkit.php index 58474902e..0c1d4eb2c 100644 --- a/wp-convertkit.php +++ b/wp-convertkit.php @@ -9,7 +9,7 @@ * Plugin Name: ConvertKit * Plugin URI: https://convertkit.com/ * Description: Quickly and easily integrate ConvertKit forms into your site. - * Version: 1.9.8.5 + * Version: 2.0.0 * Author: ConvertKit * Author URI: https://convertkit.com/ * Text Domain: convertkit @@ -25,7 +25,7 @@ define( 'CONVERTKIT_PLUGIN_FILE', plugin_basename( __FILE__ ) ); define( 'CONVERTKIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); define( 'CONVERTKIT_PLUGIN_PATH', __DIR__ ); -define( 'CONVERTKIT_PLUGIN_VERSION', '1.9.8.5' ); +define( 'CONVERTKIT_PLUGIN_VERSION', '2.0.0' ); // Load shared classes, if they have not been included by another ConvertKit Plugin. if ( ! class_exists( 'ConvertKit_API' ) ) { From fc3d9dc4e310e0d3fadec8374e4ec6d7cb574854 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 21 Oct 2022 14:41:25 +0100 Subject: [PATCH 2/5] Use WordPress Libraries 1.2.1 --- composer.json | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index d17e8c250..ae596f424 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "project", "license": "GPLv3", "require": { - "convertkit/convertkit-wordpress-libraries": "1.3.0.x-dev" + "convertkit/convertkit-wordpress-libraries": "1.2.1" }, "require-dev": { "lucatume/wp-browser": "^3.0", diff --git a/readme.txt b/readme.txt index a11beb8d3..ab75df5a1 100755 --- a/readme.txt +++ b/readme.txt @@ -58,7 +58,7 @@ Embed existing email newsletters on your WordPress web site, ensuring visitors n = Sell Products = -Embed buttons, or link text, to sell your ConvertKit Products in seconds - whether digital goods, paid newsletters, coaching and more. +Embed buttons (or link text) to sell your ConvertKit Products in seconds - whether that's digital goods, paid newsletters, music, coaching and more. = Plugin Integrations = From 3b94bd0e4a7eda9e56fe8bf8e9030818dec74fb3 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 21 Oct 2022 14:57:59 +0100 Subject: [PATCH 3/5] Update description of ConvertKit_Post_Type_Product class --- includes/class-convertkit-post-type-product.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/class-convertkit-post-type-product.php b/includes/class-convertkit-post-type-product.php index c58a292a1..7eb5d4162 100644 --- a/includes/class-convertkit-post-type-product.php +++ b/includes/class-convertkit-post-type-product.php @@ -8,9 +8,12 @@ /** * Class to register the Product Custom Post Type, and store - * Products in the Custom Post Type, permitting Gutenberg's - * LinkControl to display ConvertKit Products as results - * when searching for items to link text to. + * Products in the Custom Post Type, permitting both Gutenberg's + * LinkControl and Classic Editor link functionality to display + * ConvertKit Products as results when searching for items to link text to. + * + * Also adds data-commerce attributes to any links pointing to a ConvertKit + * Product URL. * * @since 2.0.0 */ From 272a634d6ef7efd49eb4dafd2eb615264bdf5aea Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Mon, 24 Oct 2022 13:02:30 +0100 Subject: [PATCH 4/5] Set release date on readme file --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index ab75df5a1..ec30476cf 100755 --- a/readme.txt +++ b/readme.txt @@ -117,7 +117,7 @@ Full Plugin documentation can be found [here](https://help.convertkit.com/en/art == Changelog == -### 2.0.0 2022-10-xx +### 2.0.0 2022-10-24 * Added: ConvertKit Products Block, to output a button linking to a ConvertKit Product or Tip Jar * Added: ConvertKit Products Shortcode, to output a button linking to a ConvertKit Product or Tip Jar * Added: Gutenberg: Option to link text or button to a ConvertKit Product or Tip Jar From b0833d553393a9933e8563bb2e0d798837ff71a3 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Mon, 24 Oct 2022 13:47:03 +0100 Subject: [PATCH 5/5] Remove unused `gutenberg-block-product.css` --- includes/blocks/class-convertkit-block-product.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/includes/blocks/class-convertkit-block-product.php b/includes/blocks/class-convertkit-block-product.php index 792b029ba..a8af09cb2 100644 --- a/includes/blocks/class-convertkit-block-product.php +++ b/includes/blocks/class-convertkit-block-product.php @@ -29,7 +29,6 @@ public function __construct() { // Enqueue scripts and styles for this Gutenberg Block in the editor view. add_action( 'convertkit_gutenberg_enqueue_scripts', array( $this, 'enqueue_scripts_editor' ) ); - add_action( 'convertkit_gutenberg_enqueue_styles', array( $this, 'enqueue_styles_editor' ) ); // Enqueue scripts and styles for this Gutenberg Block in the editor and frontend views. add_action( 'convertkit_gutenberg_enqueue_scripts_editor_and_frontend', array( $this, 'enqueue_scripts' ) ); @@ -48,17 +47,6 @@ public function enqueue_scripts_editor() { } - /** - * Enqueues styles for this Gutenberg Block in the editor view. - * - * @since 1.9.8.5 - */ - public function enqueue_styles_editor() { - - wp_enqueue_style( 'convertkit-gutenberg-block-product', CONVERTKIT_PLUGIN_URL . '/resources/backend/css/gutenberg-block-product.css', array( 'wp-edit-blocks' ), CONVERTKIT_PLUGIN_VERSION ); - - } - /** * Enqueues scripts for this Gutenberg Block in the editor and frontend views. *