Plugin Directory

Changeset 2441489


Ignore:
Timestamp:
12/17/2020 12:49:51 PM (5 years ago)
Author:
quentn
Message:

Fix Elementor integration for WordPress version 5.6

Location:
quentn-wp/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • quentn-wp/trunk/admin/js/quentn-elementor-integration.js

    r2437421 r2441489  
    1 jQuery( window ).on( 'elementor/frontend/init', function ( e, ep, fields, $ ) {
     1(function ( e, ep, fields, $ ) {
    22    var QuentnIntegration = {
    33        fields: fields,
     
    204204    e.addControlView( 'Qntn_fields_map', QntnFieldsMap );
    205205
    206 }( elementor, elementorPro, QntnMappableFields.fields, jQuery ) );
     206})( elementor, elementorPro, QntnMappableFields.fields, jQuery );
  • quentn-wp/trunk/includes/class-quentn-wp-elementor-field-mapping.php

    r2327486 r2441489  
    4444    public function enqueue()
    4545    {
    46         wp_register_script( 'quentn.elementor.integration.js', QUENTN_WP_PLUGIN_URL . 'admin/js/quentn-elementor-integration.js', array(), '', true );
    47         wp_enqueue_script( 'quentn.elementor.integration.js' );
     46        $wp_version = get_bloginfo( 'version' );
     47        //Add different file for elementor integration for wordpress version equal or greater than 5.6
     48        if ( version_compare( $wp_version, '5.6', '>=' ) ) {
     49            wp_register_script( 'quentn.elementor.integration.js', QUENTN_WP_PLUGIN_URL . 'admin/js/quentn-elementor-integration-5.6.js', array(), '', true );
     50            wp_enqueue_script( 'quentn.elementor.integration.js' );
     51        } else {
     52            wp_register_script( 'quentn.elementor.integration.js', QUENTN_WP_PLUGIN_URL . 'admin/js/quentn-elementor-integration.js', array(), '', true );
     53            wp_enqueue_script( 'quentn.elementor.integration.js' );
     54        }
    4855
    4956        $mappable_fields = $this->get_mappable_fields();
  • quentn-wp/trunk/includes/class-quentn-wp.php

    r2437421 r2441489  
    7575            $this->version = QUENTN_WP_VERSION;
    7676        } else {
    77             $this->version = '1.1.3';
     77            $this->version = '1.1.4';
    7878        }
    7979        $this->plugin_name = 'quentn-wp';
  • quentn-wp/trunk/quentn-wp.php

    r2437421 r2441489  
    1717 * Plugin URI:        https://docs.quentn.com/de/beta-quentn-wordpress-plugin/installieren-und-verbinden
    1818 * Description:       This plugin allows you to restrict access to specific pages, create custom access links and create dynamic page countdowns. Optionally, you can connect your Quentn account to your WordPress installation to share contacts and manage access restrictions through Quentn.
    19  * Version:           1.1.3
     19 * Version:           1.1.4
    2020 * Author:            Quentn.com GmbH
    2121 * Author URI:        https://quentn.com/
     
    3535define( "TABLE_QUENTN_RESTRICTIONS", 'qntn_restrictions' );
    3636define( "TABLE_QUENTN_USER_DATA", 'qntn_user_data' );
    37 define( 'QUENTN_WP_VERSION', '1.1.3' );
     37define( 'QUENTN_WP_VERSION', '1.1.4' );
    3838
    3939/**
  • quentn-wp/trunk/readme.txt

    r2437421 r2441489  
    33Tags: Quentn, countdown, page restriction, email, elementor integration, email marketing tool, integration, email automation, marketing automation
    44Requires at least: 4.6.0
    5 Tested up to: 5.4.2
    6 Stable tag: 1.1.3
     5Tested up to: 5.6
     6Stable tag: 1.1.4
    77Requires PHP: 5.6.0
    88License: GPLv2 or later
     
    6666
    6767== Changelog ==
     68= 1.1.4 =
     69* Fix: Elementor integration for WordPress version 5.6.
     70
    6871= 1.1.3 =
    69 * Fix: Load element integration file after elementor instance has been initiated.
     72* Fix: Load elementor integration file after elementor instance has been initiated.
    7073
    7174= 1.1.2 =
     
    116119== Upgrade Notice ==
    117120
     121= 1.1.4 =
     122Thanks for using Quentn Plugin! Please update the plugin to fix elementor integration for WordPress version 5.6.
     123
    118124= 1.1.3 =
    119125Thanks for using Quentn Plugin! Please update the plugin to fix issue with load elementor PRO forms integration file.
Note: See TracChangeset for help on using the changeset viewer.