Version Description
(2021-08-24) = - Bugfix: Problems with proxying experiment cookie in some setups (experiment variation changes upon refresh) - Increased Tested up to: 5.8.0
Download this release
Release Info
Developer | marek@instapage.com |
Plugin | Instapage WordPress Plugin |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3.0 to 3.3.1
- README.txt +5 -1
- instapage.php +1 -1
- models/InstapageCmsPluginPageModel.php +20 -6
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: marek@instapage
|
|
3 |
Tags: landing page, lead generation, a/b testing, Instapage, squeeze page, conversion rate optimization, splash page, WordPress landing page, landing page optimization, lead capture page, mobile app landing page, Facebook landing page, sales page
|
4 |
Requires at least: 3.4
|
5 |
Requires PHP: 5.4.0
|
6 |
-
Tested up to: 5.
|
7 |
Stable tag: 3.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -55,6 +55,10 @@ Join 250,000+ businesses who rely on Instapage.
|
|
55 |
4. Instapage app's dashboard.
|
56 |
|
57 |
== Changelog ==
|
|
|
|
|
|
|
|
|
58 |
= 3.3.0 (2021-04-26) =
|
59 |
- Ensure plugin core compatibility with PHP 8.0,
|
60 |
- New toggle for selecting communication protocol when making a call to Instapage services (https/http),
|
3 |
Tags: landing page, lead generation, a/b testing, Instapage, squeeze page, conversion rate optimization, splash page, WordPress landing page, landing page optimization, lead capture page, mobile app landing page, Facebook landing page, sales page
|
4 |
Requires at least: 3.4
|
5 |
Requires PHP: 5.4.0
|
6 |
+
Tested up to: 5.8.0
|
7 |
Stable tag: 3.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
55 |
4. Instapage app's dashboard.
|
56 |
|
57 |
== Changelog ==
|
58 |
+
= 3.3.1 (2021-08-24) =
|
59 |
+
- Bugfix: Problems with proxying experiment cookie in some setups (experiment variation changes upon refresh)
|
60 |
+
- Increased Tested up to: 5.8.0
|
61 |
+
|
62 |
= 3.3.0 (2021-04-26) =
|
63 |
- Ensure plugin core compatibility with PHP 8.0,
|
64 |
- New toggle for selecting communication protocol when making a call to Instapage services (https/http),
|
instapage.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Instapage Plugin
|
5 |
Description: The best way for WordPress to seamlessly publish landing pages as a natural extension of your website.
|
6 |
-
Version: 3.3.
|
7 |
Requires PHP: 5.4.0
|
8 |
Plugin URI: https://instapage.com/
|
9 |
Author: Instapage
|
3 |
/*
|
4 |
Plugin Name: Instapage Plugin
|
5 |
Description: The best way for WordPress to seamlessly publish landing pages as a natural extension of your website.
|
6 |
+
Version: 3.3.1
|
7 |
Requires PHP: 5.4.0
|
8 |
Plugin URI: https://instapage.com/
|
9 |
Author: Instapage
|
models/InstapageCmsPluginPageModel.php
CHANGED
@@ -516,20 +516,34 @@ class InstapageCmsPluginPageModel {
|
|
516 |
'expires' => strtotime('+12 month'),
|
517 |
'path' => '/',
|
518 |
'domain' => '',
|
519 |
-
'samesite' => 'None',
|
520 |
-
'secure' => InstapageCmsPluginConnector::isSSL()
|
521 |
];
|
522 |
|
|
|
|
|
|
|
|
|
|
|
|
|
523 |
if (version_compare(phpversion(), '7.3', '<')) {
|
524 |
-
|
525 |
-
|
526 |
$variantCookieName,
|
527 |
$instapageVariant,
|
528 |
$variantCookieOptions['expires'],
|
529 |
-
$
|
530 |
$variantCookieOptions['domain'],
|
531 |
$variantCookieOptions['secure']
|
532 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
} else {
|
534 |
setcookie(
|
535 |
$variantCookieName,
|
516 |
'expires' => strtotime('+12 month'),
|
517 |
'path' => '/',
|
518 |
'domain' => '',
|
|
|
|
|
519 |
];
|
520 |
|
521 |
+
if (InstapageCmsPluginConnector::isSSL()) {
|
522 |
+
$variantCookieOptions['samesite'] = 'None';
|
523 |
+
$variantCookieOptions['secure'] = InstapageCmsPluginConnector::isSSL();
|
524 |
+
}
|
525 |
+
|
526 |
+
|
527 |
if (version_compare(phpversion(), '7.3', '<')) {
|
528 |
+
if (InstapageCmsPluginConnector::isSSL()) {
|
529 |
+
setcookie(
|
530 |
$variantCookieName,
|
531 |
$instapageVariant,
|
532 |
$variantCookieOptions['expires'],
|
533 |
+
$variantCookieOptions['path'] . '; samesite=' . $variantCookieOptions['samesite'],
|
534 |
$variantCookieOptions['domain'],
|
535 |
$variantCookieOptions['secure']
|
536 |
+
);
|
537 |
+
} else {
|
538 |
+
setcookie(
|
539 |
+
$variantCookieName,
|
540 |
+
$instapageVariant,
|
541 |
+
$variantCookieOptions['expires'],
|
542 |
+
$variantCookieOptions['path'],
|
543 |
+
$variantCookieOptions['domain']
|
544 |
+
);
|
545 |
+
}
|
546 |
+
|
547 |
} else {
|
548 |
setcookie(
|
549 |
$variantCookieName,
|