Unbounce Landing Pages - Version 1.0.24

Version Description

Download this release

Release Info

Developer unbouncewordpress
Plugin Icon Unbounce Landing Pages
Version 1.0.24
Comparing to
See all releases

Code changes from version 1.0.23 to 1.0.24

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.23';
8
- const UB_VERSION = '1.0.23';
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.24';
8
+ const UB_VERSION = '1.0.24';
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.23',
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.24',
32
  'Permalink Structure' => get_option('permalink_structure', ''),
33
  'Domain' => $domain,
34
  'Domain Authorized' => print_r(UBConfig::is_authorized_domain($domain), true),
UBHTTP.php CHANGED
@@ -100,11 +100,22 @@ class UBHTTP {
100
  $script_uri_scheme = parse_url($script_uri, PHP_URL_SCHEME);
101
  $https = UBUtil::array_fetch($server_global, 'HTTPS', 'off');
102
 
 
 
 
 
 
 
103
  // X-Forwarded-Proto should be respected first, as it is what the end
104
  // user will see (if Wordpress is behind a load balancer).
105
  if(UBHTTP::is_valid_protocol($forwarded_proto)) {
106
  return $forwarded_proto . '://';
107
  }
 
 
 
 
 
108
  // Next use REQUEST_SCHEME, if it is available. This is the recommended way
109
  // to get the protocol, but it is not available on all hosts.
110
  elseif(UBHTTP::is_valid_protocol($request_scheme)) {
@@ -114,11 +125,6 @@ class UBHTTP {
114
  elseif(UBHTTP::is_valid_protocol($script_uri_scheme)) {
115
  return $script_uri_scheme . '://';
116
  }
117
- // Wordpress' is_ssl() may return the correct boolean for http/https if
118
- // the site was setup properly.
119
- elseif($wp_is_ssl || !is_null($https) && $https !== 'off') {
120
- return 'https://';
121
- }
122
  // We default to http as most HTTPS sites will also have HTTP available.
123
  else {
124
  return 'http://';
100
  $script_uri_scheme = parse_url($script_uri, PHP_URL_SCHEME);
101
  $https = UBUtil::array_fetch($server_global, 'HTTPS', 'off');
102
 
103
+ UBLogger::debug_var('UBHTTP::forwarded_proto', $forwarded_proto);
104
+ UBLogger::debug_var('UBHTTP::request_scheme', $request_scheme);
105
+ UBLogger::debug_var('UBHTTP::script_uri', $script_uri);
106
+ UBLogger::debug_var('UBHTTP::script_uri_scheme', $script_uri_scheme);
107
+ UBLogger::debug_var('UBHTTP::https', $https);
108
+
109
  // X-Forwarded-Proto should be respected first, as it is what the end
110
  // user will see (if Wordpress is behind a load balancer).
111
  if(UBHTTP::is_valid_protocol($forwarded_proto)) {
112
  return $forwarded_proto . '://';
113
  }
114
+ // Wordpress' is_ssl() may return the correct boolean for http/https if
115
+ // the site was setup properly.
116
+ elseif($wp_is_ssl || !is_null($https) && $https !== 'off') {
117
+ return 'https://';
118
+ }
119
  // Next use REQUEST_SCHEME, if it is available. This is the recommended way
120
  // to get the protocol, but it is not available on all hosts.
121
  elseif(UBHTTP::is_valid_protocol($request_scheme)) {
125
  elseif(UBHTTP::is_valid_protocol($script_uri_scheme)) {
126
  return $script_uri_scheme . '://';
127
  }
 
 
 
 
 
128
  // We default to http as most HTTPS sites will also have HTTP available.
129
  else {
130
  return 'http://';
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.23
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.24
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: 4.4
6
- Stable tag: 1.0.23
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -89,6 +89,10 @@ to help track down the issue.
89
 
90
  == Changelog ==
91
 
 
 
 
 
92
  = 1.0.23 =
93
  * Add optional support for web servers with a load balancer or proxy that is on a different network
94
  * This feature can be enabled with the ub-allow-public-address-x-forwarded-for option
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: 4.5.3
6
+ Stable tag: 1.0.24
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
89
 
90
  == Changelog ==
91
 
92
+ = 1.0.24=
93
+ * Improves support for installations using SSL
94
+ * is_ssl() has higher precedence for determing protocol of content to serve
95
+
96
  = 1.0.23 =
97
  * Add optional support for web servers with a load balancer or proxy that is on a different network
98
  * This feature can be enabled with the ub-allow-public-address-x-forwarded-for option
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.23</p>
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.24</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.23</p>
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.24</p>