Version Description
- Tested with WP 5.7
Download this release
Release Info
Developer | unbouncewordpress |
Plugin | Unbounce Landing Pages |
Version | 1.0.47 |
Comparing to | |
See all releases |
Code changes from version 1.0.45 to 1.0.47
- UBConfig.php +2 -2
- UBDiagnostics.php +3 -3
- UBHTTP.php +30 -1
- Unbounce-Page.php +1 -1
- readme.txt +18 -10
- templates/main_authorized_footer.php +1 -1
- templates/main_unauthorized_footer.php +1 -1
UBConfig.php
CHANGED
@@ -5,8 +5,8 @@ class UBConfig
|
|
5 |
|
6 |
const UB_PLUGIN_NAME = 'ub-wordpress';
|
7 |
const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP';
|
8 |
-
const UB_USER_AGENT = 'Unbounce WP Plugin 1.0.
|
9 |
-
const UB_VERSION = '1.0.
|
10 |
|
11 |
// Option keys
|
12 |
const UB_ROUTES_CACHE_KEY = 'ub-route-cache';
|
5 |
|
6 |
const UB_PLUGIN_NAME = 'ub-wordpress';
|
7 |
const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP';
|
8 |
+
const UB_USER_AGENT = 'Unbounce WP Plugin 1.0.47';
|
9 |
+
const UB_VERSION = '1.0.47';
|
10 |
|
11 |
// Option keys
|
12 |
const UB_ROUTES_CACHE_KEY = 'ub-route-cache';
|
UBDiagnostics.php
CHANGED
@@ -100,7 +100,7 @@ class UBDiagnostics
|
|
100 |
return array(
|
101 |
'PHP Version' => phpversion(),
|
102 |
'WordPress Version' => UBDiagnostics::wordpress_version(),
|
103 |
-
'Unbounce Plugin Version' => '1.0.
|
104 |
'Checks' => self::pp(UBDiagnostics::checks($domain, $domain_info)),
|
105 |
'Options' => self::pp(UBDiagnostics::ub_options()),
|
106 |
'Permalink Structure' => get_option('permalink_structure', ''),
|
@@ -140,7 +140,7 @@ class UBDiagnostics
|
|
140 |
}
|
141 |
}
|
142 |
|
143 |
-
|
144 |
{
|
145 |
global $wp_version;
|
146 |
include(ABSPATH . WPINC . '/version.php');
|
@@ -178,7 +178,7 @@ class UBDiagnostics
|
|
178 |
return array(
|
179 |
'php' => phpversion(),
|
180 |
'wordpress' => UBDiagnostics::wordpress_version(),
|
181 |
-
'plugin_version' => '1.0.
|
182 |
'curl_installed' => self::is_curl_installed(),
|
183 |
'xml_installed' => self::is_xml_installed(),
|
184 |
'sni_support' => self::hasSNI(),
|
100 |
return array(
|
101 |
'PHP Version' => phpversion(),
|
102 |
'WordPress Version' => UBDiagnostics::wordpress_version(),
|
103 |
+
'Unbounce Plugin Version' => '1.0.47',
|
104 |
'Checks' => self::pp(UBDiagnostics::checks($domain, $domain_info)),
|
105 |
'Options' => self::pp(UBDiagnostics::ub_options()),
|
106 |
'Permalink Structure' => get_option('permalink_structure', ''),
|
140 |
}
|
141 |
}
|
142 |
|
143 |
+
public static function wordpress_version()
|
144 |
{
|
145 |
global $wp_version;
|
146 |
include(ABSPATH . WPINC . '/version.php');
|
178 |
return array(
|
179 |
'php' => phpversion(),
|
180 |
'wordpress' => UBDiagnostics::wordpress_version(),
|
181 |
+
'plugin_version' => '1.0.47',
|
182 |
'curl_installed' => self::is_curl_installed(),
|
183 |
'xml_installed' => self::is_xml_installed(),
|
184 |
'sni_support' => self::hasSNI(),
|
UBHTTP.php
CHANGED
@@ -240,10 +240,37 @@ class UBHTTP
|
|
240 |
$filtered_h = array_merge($filtered_h, UBHTTP::get_proxied_for_header(
|
241 |
$forwarded_for,
|
242 |
$remote_ip
|
243 |
-
));
|
|
|
244 |
return $filtered_h;
|
245 |
}
|
246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
public static function sanitize_cookies($headers)
|
248 |
{
|
249 |
$cookie_key = "Cookie";
|
@@ -427,6 +454,8 @@ class UBHTTP
|
|
427 |
|
428 |
if ($http_method == 'GET' && $path == '/_ubhc') {
|
429 |
return 'HealthCheck';
|
|
|
|
|
430 |
} elseif ($http_method == "POST" &&
|
431 |
preg_match("/^\/(fsn|fsg|fs)\/?$/", $path)) {
|
432 |
return "SubmitLead";
|
240 |
$filtered_h = array_merge($filtered_h, UBHTTP::get_proxied_for_header(
|
241 |
$forwarded_for,
|
242 |
$remote_ip
|
243 |
+
), UBHTTP::get_diagnostic_headers());
|
244 |
+
|
245 |
return $filtered_h;
|
246 |
}
|
247 |
|
248 |
+
private static function get_diagnostic_headers()
|
249 |
+
{
|
250 |
+
$headers = array('X-UB-WordPress-Plugin-Version' => '1.0.47');
|
251 |
+
|
252 |
+
try {
|
253 |
+
// OS info:
|
254 |
+
// - 's': Operating system name. eg. Linux
|
255 |
+
// - 'r': Release name. eg. 5.4.39-linuxkit
|
256 |
+
// - 'm': Machine type. eg. x86_64
|
257 |
+
$os_info = implode(' ', array_map('php_uname', ['s', 'r', 'm']));
|
258 |
+
$curl_version = curl_version();
|
259 |
+
$headers = array_merge($headers, array(
|
260 |
+
'X-UB-WordPress-WordPress-Version' => UBDiagnostics::wordpress_version(),
|
261 |
+
'X-UB-WordPress-PHP-Version' => phpversion(),
|
262 |
+
'X-UB-WordPress-CURL-Version' => $curl_version['version'],
|
263 |
+
'X-UB-WordPress-SSL-Version' => $curl_version['ssl_version'],
|
264 |
+
'X-UB-WordPress-SNI-Support' => UBDiagnostics::hasSNI(),
|
265 |
+
'X-UB-WordPress-OS' => $os_info,
|
266 |
+
));
|
267 |
+
} catch (Throwable $e) {
|
268 |
+
UBLogger::warning('Failed to build diagnostic headers: ' . $e);
|
269 |
+
}
|
270 |
+
|
271 |
+
return $headers;
|
272 |
+
}
|
273 |
+
|
274 |
public static function sanitize_cookies($headers)
|
275 |
{
|
276 |
$cookie_key = "Cookie";
|
454 |
|
455 |
if ($http_method == 'GET' && $path == '/_ubhc') {
|
456 |
return 'HealthCheck';
|
457 |
+
} elseif (preg_match("/^\/_ub\/[\w.-]/", $path)) {
|
458 |
+
return "GenericProxyableRequest";
|
459 |
} elseif ($http_method == "POST" &&
|
460 |
preg_match("/^\/(fsn|fsg|fs)\/?$/", $path)) {
|
461 |
return "SubmitLead";
|
Unbounce-Page.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Unbounce Landing Pages
|
4 |
Plugin URI: http://unbounce.com
|
5 |
Description: Unbounce is the most powerful standalone landing page builder available.
|
6 |
-
Version: 1.0.
|
7 |
Author: Unbounce
|
8 |
Author URI: http://unbounce.com
|
9 |
License: GPLv2
|
3 |
Plugin Name: Unbounce Landing Pages
|
4 |
Plugin URI: http://unbounce.com
|
5 |
Description: Unbounce is the most powerful standalone landing page builder available.
|
6 |
+
Version: 1.0.47
|
7 |
Author: Unbounce
|
8 |
Author URI: http://unbounce.com
|
9 |
License: GPLv2
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: unbouncewordpress
|
3 |
Tags: Unbounce, AB testing, A/B testing, split testing, CRO, conversion optimization, wordpress landing page, wp landing pages, splash pages, landing pages, squeeze pages, lead gen, lead generation, email list, responsive landing pages, templates, inbound marketing, ppc, analytics
|
4 |
Requires at least: 4.1.5
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.0.
|
7 |
Requires PHP: 7.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -82,10 +82,12 @@ Unbounce page will be displayed, not the Wordpress page.
|
|
82 |
|
83 |
= Does this plugin send any data to Unbounce? =
|
84 |
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
|
|
|
|
89 |
|
90 |
= Unbounce Pages are loading, but my conversions are not being tracked =
|
91 |
|
@@ -101,6 +103,13 @@ You should add a rule to your cache to avoid caching Unbounce Pages which have t
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
= 1.0.45 =
|
105 |
* Documentation updates to reflect minimum PHP requirements (currently 7.2)
|
106 |
* Add support for PHP 7.2 and higher
|
@@ -128,7 +137,7 @@ You should add a rule to your cache to avoid caching Unbounce Pages which have t
|
|
128 |
* Fixes an issue preventing new options from being created when upgrading the plugin
|
129 |
|
130 |
= 1.0.38 =
|
131 |
-
* Adds an option (ub-use-curl) to opt-out of using cURL as a proxying client, the alternative being
|
132 |
|
133 |
= 1.0.37 =
|
134 |
* Better documentation and troubleshooting
|
@@ -142,7 +151,6 @@ You should add a rule to your cache to avoid caching Unbounce Pages which have t
|
|
142 |
|
143 |
= 1.0.34 =
|
144 |
* New diagnostics entry for SSL's SNI Support on WordPress installations
|
145 |
-
* Better
|
146 |
|
147 |
= 1.0.33 =
|
148 |
* Improved support for PHP 7.1
|
@@ -160,7 +168,7 @@ You should add a rule to your cache to avoid caching Unbounce Pages which have t
|
|
160 |
* Minor bug fix
|
161 |
|
162 |
= 1.0.28 =
|
163 |
-
* Disables the
|
164 |
|
165 |
= 1.0.27 =
|
166 |
* Add a custom header "X-Unbounce-Plugin: 1" to identify all pages served by the plugin to support cache invalidation.
|
@@ -173,7 +181,7 @@ You should add a rule to your cache to avoid caching Unbounce Pages which have t
|
|
173 |
|
174 |
= 1.0.24 =
|
175 |
* Improves support for installations using SSL
|
176 |
-
* is_ssl() has higher precedence for
|
177 |
|
178 |
= 1.0.23 =
|
179 |
* Add optional support for web servers with a load balancer or proxy that is on a different network
|
2 |
Contributors: unbouncewordpress
|
3 |
Tags: Unbounce, AB testing, A/B testing, split testing, CRO, conversion optimization, wordpress landing page, wp landing pages, splash pages, landing pages, squeeze pages, lead gen, lead generation, email list, responsive landing pages, templates, inbound marketing, ppc, analytics
|
4 |
Requires at least: 4.1.5
|
5 |
+
Tested up to: 5.7
|
6 |
+
Stable tag: 1.0.47
|
7 |
Requires PHP: 7.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
82 |
|
83 |
= Does this plugin send any data to Unbounce? =
|
84 |
|
85 |
+
The plugin sends some information along with each request to Unbounce's servers, containing the
|
86 |
+
version number of the plugin and of some system components, to help us diagnose issues and to track
|
87 |
+
version usage. It also has an optional "debug" mode which will send diagnostic information to
|
88 |
+
Unbounce when switched on. This feature is disabled when you install the plugin. An Unbounce
|
89 |
+
Customer Success Coach may request that you turn the debug feature on if you are experiencing issues
|
90 |
+
with the plugin to help track down the issue.
|
91 |
|
92 |
= Unbounce Pages are loading, but my conversions are not being tracked =
|
93 |
|
103 |
|
104 |
== Changelog ==
|
105 |
|
106 |
+
= 1.0.47 =
|
107 |
+
* Tested with WP 5.7
|
108 |
+
|
109 |
+
= 1.0.46 =
|
110 |
+
* Include some diagnostic information in request headers to help us diagnose issues
|
111 |
+
* Support for client side stats
|
112 |
+
|
113 |
= 1.0.45 =
|
114 |
* Documentation updates to reflect minimum PHP requirements (currently 7.2)
|
115 |
* Add support for PHP 7.2 and higher
|
137 |
* Fixes an issue preventing new options from being created when upgrading the plugin
|
138 |
|
139 |
= 1.0.38 =
|
140 |
+
* Adds an option (ub-use-curl) to opt-out of using cURL as a proxying client, the alternative being wp_remote_request
|
141 |
|
142 |
= 1.0.37 =
|
143 |
* Better documentation and troubleshooting
|
151 |
|
152 |
= 1.0.34 =
|
153 |
* New diagnostics entry for SSL's SNI Support on WordPress installations
|
|
|
154 |
|
155 |
= 1.0.33 =
|
156 |
* Improved support for PHP 7.1
|
168 |
* Minor bug fix
|
169 |
|
170 |
= 1.0.28 =
|
171 |
+
* Disables the Unbounce plugin when editing drafts as a logged in user.
|
172 |
|
173 |
= 1.0.27 =
|
174 |
* Add a custom header "X-Unbounce-Plugin: 1" to identify all pages served by the plugin to support cache invalidation.
|
181 |
|
182 |
= 1.0.24 =
|
183 |
* Improves support for installations using SSL
|
184 |
+
* is_ssl() has higher precedence for determining protocol of content to serve
|
185 |
|
186 |
= 1.0.23 =
|
187 |
* Add optional support for web servers with a load balancer or proxy that is on a different network
|
templates/main_authorized_footer.php
CHANGED
@@ -21,4 +21,4 @@ $refresh_button = get_submit_button('refreshing the Published Pages list', 'seco
|
|
21 |
<a class="ub-diagnostics-link" href="<?php echo $diagnostics_url ?>">
|
22 |
Click here for troubleshooting and plugin diagnostics
|
23 |
</a>
|
24 |
-
<p class="ub-version">Unbounce Version 1.0.
|
21 |
<a class="ub-diagnostics-link" href="<?php echo $diagnostics_url ?>">
|
22 |
Click here for troubleshooting and plugin diagnostics
|
23 |
</a>
|
24 |
+
<p class="ub-version">Unbounce Version 1.0.47</p>
|
templates/main_unauthorized_footer.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
<a class="ub-diagnostics-link" href="<?php echo admin_url('admin.php?page=unbounce-pages-diagnostics'); ?>">
|
5 |
Click here for troubleshooting and plugin diagnostics
|
6 |
</a>
|
7 |
-
<p class="ub-version">Unbounce Version 1.0.
|
4 |
<a class="ub-diagnostics-link" href="<?php echo admin_url('admin.php?page=unbounce-pages-diagnostics'); ?>">
|
5 |
Click here for troubleshooting and plugin diagnostics
|
6 |
</a>
|
7 |
+
<p class="ub-version">Unbounce Version 1.0.47</p>
|