Plugin Directory

Changeset 3476136


Ignore:
Timestamp:
03/06/2026 07:29:02 AM (5 days ago)
Author:
convertkit
Message:

Update to version 3.2.1 from GitHub

Location:
convertkit
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • convertkit/tags/3.2.1/CHANGELOG.md

    r3469832 r3476136  
     1### 3.2.1 2026-03-05
     2* Fix: Divi 5: Fatal error when activating Theme
     3* Fix: Removed errant `<html>` and `<head>` tags when Settings > Kit > Form Position = After element
     4
    15### 3.2.0 2026-02-26
    26* Added: Minify CSS into single frontend.css resource
  • convertkit/tags/3.2.1/includes/class-convertkit-output.php

    r3469832 r3476136  
    505505        }
    506506
    507         // Create new element for the Form.
    508         $form_node = new DOMDocument();
    509         $form_node->loadHTML( $form, LIBXML_HTML_NODEFDTD );
    510 
    511         // Append the form to the specific element.
    512         $element_node->parentNode->insertBefore( $parser->html->importNode( $form_node->documentElement, true ), $element_node->nextSibling ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
    513 
    514         // Fetch HTML string.
     507        // Load the form into the parser.
     508        $form_parser = new ConvertKit_HTML_Parser( $form, LIBXML_HTML_NODEFDTD );
     509        $form_body   = $form_parser->html->getElementsByTagName( 'body' )->item( 0 );
     510
     511        // Collect nodes first to avoid live NodeList mutation issues.
     512        $nodes_to_insert = array();
     513        foreach ( $form_body->childNodes as $child ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
     514            $nodes_to_insert[] = $parser->html->importNode( $child, true );
     515        }
     516
     517        // Inject the form node(s) after the element node e.g. after the paragraph, heading etc.
     518        $next_sibling = $element_node->nextSibling; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
     519        foreach ( $nodes_to_insert as $node ) {
     520            $element_node->parentNode->insertBefore( $node, $element_node->nextSibling ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
     521        }
     522
     523        // Return modified HTML string.
    515524        return $parser->get_body_html();
    516525
  • convertkit/tags/3.2.1/includes/integrations/divi/class-convertkit-divi-module.php

    r3403088 r3476136  
    9696        // Bail if no block.
    9797        if ( is_wp_error( $this->block ) ) {
     98            return array();
     99        }
     100
     101        // Bail if the block is false.
     102        // This happens on Divi 5 theme activation.
     103        if ( ! $this->block ) {
    98104            return array();
    99105        }
  • convertkit/tags/3.2.1/languages/convertkit.pot

    r3469832 r3476136  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Kit (formerly ConvertKit) 3.2.0\n"
     5"Project-Id-Version: Kit (formerly ConvertKit) 3.2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-02-26T02:10:00+00:00\n"
     12"POT-Creation-Date: 2026-03-06T02:52:32+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    18261826msgstr ""
    18271827
    1828 #: includes/integrations/divi/class-convertkit-divi-module.php:165
     1828#: includes/integrations/divi/class-convertkit-divi-module.php:171
    18291829msgid "(None)"
    18301830msgstr ""
    18311831
    1832 #: includes/integrations/divi/class-convertkit-divi-module.php:178
     1832#: includes/integrations/divi/class-convertkit-divi-module.php:184
    18331833#: views/backend/term/fields-add.php:54
    18341834#: views/backend/term/fields-edit.php:58
     
    18371837msgstr ""
    18381838
    1839 #: includes/integrations/divi/class-convertkit-divi-module.php:179
     1839#: includes/integrations/divi/class-convertkit-divi-module.php:185
    18401840#: views/backend/tinymce/modal-field.php:102
    18411841msgid "Yes"
  • convertkit/tags/3.2.1/readme.txt

    r3469832 r3476136  
    66Tested up to: 6.9
    77Requires PHP: 7.1
    8 Stable tag: 3.2.0
     8Stable tag: 3.2.1
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    343343
    344344== Changelog ==
     345
     346### 3.2.1 2026-03-05
     347* Fix: Divi 5: Fatal error when activating Theme
     348* Fix: Removed errant `<html>` and `<head>` tags when Settings > Kit > Form Position = After element
    345349
    346350### 3.2.0 2026-02-26
  • convertkit/tags/3.2.1/wp-convertkit.php

    r3469832 r3476136  
    1010 * Plugin URI: https://kit.com/
    1111 * Description: Display Kit (formerly ConvertKit) email subscription forms, landing pages, products, broadcasts and more.
    12  * Version: 3.2.0
     12 * Version: 3.2.1
    1313 * Author: Kit
    1414 * Author URI: https://kit.com/
     
    2828define( 'CONVERTKIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    2929define( 'CONVERTKIT_PLUGIN_PATH', __DIR__ );
    30 define( 'CONVERTKIT_PLUGIN_VERSION', '3.2.0' );
     30define( 'CONVERTKIT_PLUGIN_VERSION', '3.2.1' );
    3131define( 'CONVERTKIT_OAUTH_CLIENT_ID', 'HXZlOCj-K5r0ufuWCtyoyo3f688VmMAYSsKg1eGvw0Y' );
    3232define( 'CONVERTKIT_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' );
  • convertkit/trunk/CHANGELOG.md

    r3469832 r3476136  
     1### 3.2.1 2026-03-05
     2* Fix: Divi 5: Fatal error when activating Theme
     3* Fix: Removed errant `<html>` and `<head>` tags when Settings > Kit > Form Position = After element
     4
    15### 3.2.0 2026-02-26
    26* Added: Minify CSS into single frontend.css resource
  • convertkit/trunk/includes/class-convertkit-output.php

    r3469832 r3476136  
    505505        }
    506506
    507         // Create new element for the Form.
    508         $form_node = new DOMDocument();
    509         $form_node->loadHTML( $form, LIBXML_HTML_NODEFDTD );
    510 
    511         // Append the form to the specific element.
    512         $element_node->parentNode->insertBefore( $parser->html->importNode( $form_node->documentElement, true ), $element_node->nextSibling ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
    513 
    514         // Fetch HTML string.
     507        // Load the form into the parser.
     508        $form_parser = new ConvertKit_HTML_Parser( $form, LIBXML_HTML_NODEFDTD );
     509        $form_body   = $form_parser->html->getElementsByTagName( 'body' )->item( 0 );
     510
     511        // Collect nodes first to avoid live NodeList mutation issues.
     512        $nodes_to_insert = array();
     513        foreach ( $form_body->childNodes as $child ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
     514            $nodes_to_insert[] = $parser->html->importNode( $child, true );
     515        }
     516
     517        // Inject the form node(s) after the element node e.g. after the paragraph, heading etc.
     518        $next_sibling = $element_node->nextSibling; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
     519        foreach ( $nodes_to_insert as $node ) {
     520            $element_node->parentNode->insertBefore( $node, $element_node->nextSibling ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
     521        }
     522
     523        // Return modified HTML string.
    515524        return $parser->get_body_html();
    516525
  • convertkit/trunk/includes/integrations/divi/class-convertkit-divi-module.php

    r3403088 r3476136  
    9696        // Bail if no block.
    9797        if ( is_wp_error( $this->block ) ) {
     98            return array();
     99        }
     100
     101        // Bail if the block is false.
     102        // This happens on Divi 5 theme activation.
     103        if ( ! $this->block ) {
    98104            return array();
    99105        }
  • convertkit/trunk/languages/convertkit.pot

    r3469832 r3476136  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Kit (formerly ConvertKit) 3.2.0\n"
     5"Project-Id-Version: Kit (formerly ConvertKit) 3.2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-02-26T02:10:00+00:00\n"
     12"POT-Creation-Date: 2026-03-06T02:52:32+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    18261826msgstr ""
    18271827
    1828 #: includes/integrations/divi/class-convertkit-divi-module.php:165
     1828#: includes/integrations/divi/class-convertkit-divi-module.php:171
    18291829msgid "(None)"
    18301830msgstr ""
    18311831
    1832 #: includes/integrations/divi/class-convertkit-divi-module.php:178
     1832#: includes/integrations/divi/class-convertkit-divi-module.php:184
    18331833#: views/backend/term/fields-add.php:54
    18341834#: views/backend/term/fields-edit.php:58
     
    18371837msgstr ""
    18381838
    1839 #: includes/integrations/divi/class-convertkit-divi-module.php:179
     1839#: includes/integrations/divi/class-convertkit-divi-module.php:185
    18401840#: views/backend/tinymce/modal-field.php:102
    18411841msgid "Yes"
  • convertkit/trunk/readme.txt

    r3469832 r3476136  
    66Tested up to: 6.9
    77Requires PHP: 7.1
    8 Stable tag: 3.2.0
     8Stable tag: 3.2.1
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    343343
    344344== Changelog ==
     345
     346### 3.2.1 2026-03-05
     347* Fix: Divi 5: Fatal error when activating Theme
     348* Fix: Removed errant `<html>` and `<head>` tags when Settings > Kit > Form Position = After element
    345349
    346350### 3.2.0 2026-02-26
  • convertkit/trunk/wp-convertkit.php

    r3469832 r3476136  
    1010 * Plugin URI: https://kit.com/
    1111 * Description: Display Kit (formerly ConvertKit) email subscription forms, landing pages, products, broadcasts and more.
    12  * Version: 3.2.0
     12 * Version: 3.2.1
    1313 * Author: Kit
    1414 * Author URI: https://kit.com/
     
    2828define( 'CONVERTKIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    2929define( 'CONVERTKIT_PLUGIN_PATH', __DIR__ );
    30 define( 'CONVERTKIT_PLUGIN_VERSION', '3.2.0' );
     30define( 'CONVERTKIT_PLUGIN_VERSION', '3.2.1' );
    3131define( 'CONVERTKIT_OAUTH_CLIENT_ID', 'HXZlOCj-K5r0ufuWCtyoyo3f688VmMAYSsKg1eGvw0Y' );
    3232define( 'CONVERTKIT_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' );
Note: See TracChangeset for help on using the changeset viewer.