Plugin Directory

Changeset 2608554


Ignore:
Timestamp:
10/03/2021 06:51:24 PM (5 years ago)
Author:
quentn
Message:

Fixed minor issue how ternary operators used in Elementor integration.

Location:
quentn-wp/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • quentn-wp/trunk/includes/class-quentn-wp-elementor-integration.php

    r2562965 r2608554  
    373373                $fields[ $id ] = explode( ",", $field['value'] );
    374374            } elseif ( $field['type'] == 'acceptance' && $field['value'] == 'on' ) {
     375                //get ip address
     376                if ( isset( $_SERVER['HTTP_CLIENT_IP'] ) ) {
     377                    $ip = $_SERVER['HTTP_CLIENT_IP'];
     378                } elseif ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
     379                    $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
     380                } else {
     381                    $ip = $_SERVER['REMOTE_ADDR'];
     382                }
    375383                $fields[ $id ] = array(
    376                     "ip" => isset( $_SERVER['HTTP_CLIENT_IP'] ) ? $_SERVER['HTTP_CLIENT_IP'] : isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'],
     384                    "ip" => $ip,
    377385                    "created" => time(),
    378386                    "source" => Helper::get_current_host_name(),
  • quentn-wp/trunk/includes/class-quentn-wp.php

    r2562965 r2608554  
    7575            $this->version = QUENTN_WP_VERSION;
    7676        } else {
    77             $this->version = '1.1.7';
     77            $this->version = '1.1.8';
    7878        }
    7979        $this->plugin_name = 'quentn-wp';
  • quentn-wp/trunk/quentn-wp.php

    r2562965 r2608554  
    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.7
     19 * Version:           1.1.8
    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.7' );
     37define( 'QUENTN_WP_VERSION', '1.1.8' );
    3838
    3939/**
  • quentn-wp/trunk/readme.txt

    r2562965 r2608554  
    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.7
    6 Stable tag: 1.1.7
     5Tested up to: 5.8
     6Stable tag: 1.1.8
    77Requires PHP: 5.6.0
    88License: GPLv2 or later
     
    6666
    6767== Changelog ==
     68= 1.1.8 =
     69* Fixed minor issue how ternary operators used in Elementor integration.
     70
    6871= 1.1.7 =
    6972* Prefix Guzzle library namespace to avoid conflict with other plugins.
     
    128131== Upgrade Notice ==
    129132
     133= 1.1.8 =
     134Thanks for using Quentn Plugin! Please update the plugin to fix ternary operator error in Elementor integration.
     135
    130136= 1.1.7 =
    131137Thanks for using Quentn Plugin! Please update the plugin to avoid conflict of Guzzle library with other plugins.
Note: See TracChangeset for help on using the changeset viewer.