Version Description
Download this release
Release Info
Developer | unbouncewordpress |
Plugin | Unbounce Landing Pages |
Version | 1.0.29 |
Comparing to | |
See all releases |
Code changes from version 1.0.27 to 1.0.29
- UBConfig.php +2 -2
- UBDiagnostics.php +1 -1
- UBUtil.php +16 -0
- Unbounce-Page.php +4 -1
- readme.txt +4 -1
- templates/main_authorized_footer.php +1 -1
- templates/main_unauthorized_footer.php +1 -1
UBConfig.php
CHANGED
@@ -4,8 +4,8 @@ class UBConfig {
|
|
4 |
|
5 |
const UB_PLUGIN_NAME = 'ub-wordpress';
|
6 |
const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP';
|
7 |
-
const UB_USER_AGENT = 'Unbounce WP Plugin 1.0.
|
8 |
-
const UB_VERSION = '1.0.
|
9 |
|
10 |
// Option keys
|
11 |
const UB_ROUTES_CACHE_KEY = 'ub-route-cache';
|
4 |
|
5 |
const UB_PLUGIN_NAME = 'ub-wordpress';
|
6 |
const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP';
|
7 |
+
const UB_USER_AGENT = 'Unbounce WP Plugin 1.0.29';
|
8 |
+
const UB_VERSION = '1.0.29';
|
9 |
|
10 |
// Option keys
|
11 |
const UB_ROUTES_CACHE_KEY = 'ub-route-cache';
|
UBDiagnostics.php
CHANGED
@@ -28,7 +28,7 @@ class UBDiagnostics {
|
|
28 |
return array(
|
29 |
'PHP Version' => phpversion(),
|
30 |
'WordPress Version' => UBDiagnostics::wordpress_version(),
|
31 |
-
'Unbounce Plugin Version' => '1.0.
|
32 |
'Permalink Structure' => get_option('permalink_structure', ''),
|
33 |
'Domain' => $domain,
|
34 |
'Domain Authorized' => print_r(UBConfig::is_authorized_domain($domain), true),
|
28 |
return array(
|
29 |
'PHP Version' => phpversion(),
|
30 |
'WordPress Version' => UBDiagnostics::wordpress_version(),
|
31 |
+
'Unbounce Plugin Version' => '1.0.29',
|
32 |
'Permalink Structure' => get_option('permalink_structure', ''),
|
33 |
'Domain' => $domain,
|
34 |
'Domain Authorized' => print_r(UBConfig::is_authorized_domain($domain), true),
|
UBUtil.php
CHANGED
@@ -85,5 +85,21 @@ class UBUtil {
|
|
85 |
}
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
?>
|
85 |
}
|
86 |
}
|
87 |
|
88 |
+
/**
|
89 |
+
* Checks if the current page is a preview page (from on GET parameters).
|
90 |
+
*
|
91 |
+
* This is needed because Wordpress's is_preview() is only true for pages that
|
92 |
+
* are already published.
|
93 |
+
*
|
94 |
+
* This should return true when:
|
95 |
+
* - previewing posts
|
96 |
+
* - previewing pages
|
97 |
+
* - previewing drafts (of posts & pages)
|
98 |
+
*/
|
99 |
+
public static function is_wordpress_preview($get_params) {
|
100 |
+
return isset($get_params['preview'])
|
101 |
+
&& (isset($get_params['p']) || isset($get_params['page_id']) || isset($get_params['preview_id']));
|
102 |
+
}
|
103 |
+
|
104 |
}
|
105 |
?>
|
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
|
@@ -93,6 +93,9 @@ add_action('init', function() {
|
|
93 |
if ($url_purpose == null) {
|
94 |
UBLogger::debug("ignoring request to URL " . $current_url);
|
95 |
}
|
|
|
|
|
|
|
96 |
elseif ($url_purpose == 'HealthCheck') {
|
97 |
if (UBConfig::domain_with_port() !== UBUtil::array_fetch($_SERVER, 'HTTP_HOST')) {
|
98 |
http_response_code(412);
|
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.29
|
7 |
Author: Unbounce
|
8 |
Author URI: http://unbounce.com
|
9 |
License: GPLv2
|
93 |
if ($url_purpose == null) {
|
94 |
UBLogger::debug("ignoring request to URL " . $current_url);
|
95 |
}
|
96 |
+
elseif(is_user_logged_in() && UBUtil::is_wordpress_preview($_GET)) {
|
97 |
+
UBLogger::debug("Serving Wordpress Preview instead of landing page on root");
|
98 |
+
}
|
99 |
elseif ($url_purpose == 'HealthCheck') {
|
100 |
if (UBConfig::domain_with_port() !== UBUtil::array_fetch($_SERVER, 'HTTP_HOST')) {
|
101 |
http_response_code(412);
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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: 4.6
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -94,6 +94,9 @@ You should add a rule to your cache to avoid caching Unbounce Pages which have t
|
|
94 |
|
95 |
== Changelog ==
|
96 |
|
|
|
|
|
|
|
97 |
= 1.0.27 =
|
98 |
* Add a custom header "X-Unbounce-Plugin: 1" to identify all pages served by the plugin to support cache invalidation.
|
99 |
|
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: 4.6
|
6 |
+
Stable tag: 1.0.29
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
94 |
|
95 |
== Changelog ==
|
96 |
|
97 |
+
= 1.0.28 =
|
98 |
+
* Disables the unbounce plugin when editing drafts as a logged in user.
|
99 |
+
|
100 |
= 1.0.27 =
|
101 |
* Add a custom header "X-Unbounce-Plugin: 1" to identify all pages served by the plugin to support cache invalidation.
|
102 |
|
templates/main_authorized_footer.php
CHANGED
@@ -18,4 +18,4 @@ $refresh_button = get_submit_button('refreshing the Published Pages list', 'seco
|
|
18 |
Check out our knowledge base.
|
19 |
</a>
|
20 |
<br/><a class="ub-diagnostics-link" href="<?php echo $diagnostics_url ?>">Click here for troubleshooting and plugin diagnostics</a>
|
21 |
-
<p class="ub-version">Unbounce Version 1.0.
|
18 |
Check out our knowledge base.
|
19 |
</a>
|
20 |
<br/><a class="ub-diagnostics-link" href="<?php echo $diagnostics_url ?>">Click here for troubleshooting and plugin diagnostics</a>
|
21 |
+
<p class="ub-version">Unbounce Version 1.0.29</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.29</p>
|