Unbounce Landing Pages - Version 1.0.15

Version Description

Download this release

Release Info

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

Code changes from version 1.0.14 to 1.0.15

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.14';
8
- const UB_VERSION = '1.0.14';
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.15';
8
+ const UB_VERSION = '1.0.15';
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.14",
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.15",
32
  'Permalink Structure' => get_option('permalink_structure', ''),
33
  'Domain' => $domain,
34
  'Domain Authorized' => print_r(UBConfig::is_authorized_domain($domain), true),
UBHTTP.php CHANGED
@@ -5,6 +5,7 @@ class UBHTTP {
5
  public static $form_confirmation_url_regex = '/(.+)\/[a-z]+-form_confirmation\.html/i';
6
  public static $lightbox_url_regex = '/(.+)\/[a-z]+-[0-9]+-lightbox\.html/i';
7
  public static $variant_url_regex = '/(.+)\/[a-z]+\.html/i';
 
8
  // Suppress Etag and Last-Modified so that browser doesn't send If-None-Match and If-Modified-Since header (to bypass front-end caches)
9
  public static $forward_headers = '/^(Content-Type:|Location:|Link:|Content-Location:|Set-Cookie:|X-Server-Instance:|X-Unbounce-PageId:|X-Unbounce-Variant:|X-Unbounce-VisitorID:)/i';
10
 
@@ -223,9 +224,11 @@ class UBHTTP {
223
  $host = parse_url($url, PHP_URL_HOST);
224
  $path = rtrim(parse_url($url, PHP_URL_PATH), '/');
225
  $url_without_protocol = $host . $path;
 
226
  UBLogger::debug_var('get_url_purpose $host', $host);
227
  UBLogger::debug_var('get_url_purpose $path', $path);
228
  UBLogger::debug_var('get_url_purpose $url_without_protocol', $url_without_protocol);
 
229
  if ($http_method == 'GET' && $path == '/_ubhc') {
230
  return 'HealthCheck';
231
  } elseif ($http_method == "POST" &&
@@ -240,6 +243,9 @@ class UBHTTP {
240
  UBHTTP::is_lightbox($proxyable_url_set, $url_without_protocol) ||
241
  UBHTTP::is_variant($proxyable_url_set, $url_without_protocol))) {
242
  return "ViewLandingPage";
 
 
 
243
  } else {
244
  return null;
245
  }
5
  public static $form_confirmation_url_regex = '/(.+)\/[a-z]+-form_confirmation\.html/i';
6
  public static $lightbox_url_regex = '/(.+)\/[a-z]+-[0-9]+-lightbox\.html/i';
7
  public static $variant_url_regex = '/(.+)\/[a-z]+\.html/i';
8
+ public static $pie_htc_url = '/PIE.htc';
9
  // Suppress Etag and Last-Modified so that browser doesn't send If-None-Match and If-Modified-Since header (to bypass front-end caches)
10
  public static $forward_headers = '/^(Content-Type:|Location:|Link:|Content-Location:|Set-Cookie:|X-Server-Instance:|X-Unbounce-PageId:|X-Unbounce-Variant:|X-Unbounce-VisitorID:)/i';
11
 
224
  $host = parse_url($url, PHP_URL_HOST);
225
  $path = rtrim(parse_url($url, PHP_URL_PATH), '/');
226
  $url_without_protocol = $host . $path;
227
+
228
  UBLogger::debug_var('get_url_purpose $host', $host);
229
  UBLogger::debug_var('get_url_purpose $path', $path);
230
  UBLogger::debug_var('get_url_purpose $url_without_protocol', $url_without_protocol);
231
+
232
  if ($http_method == 'GET' && $path == '/_ubhc') {
233
  return 'HealthCheck';
234
  } elseif ($http_method == "POST" &&
243
  UBHTTP::is_lightbox($proxyable_url_set, $url_without_protocol) ||
244
  UBHTTP::is_variant($proxyable_url_set, $url_without_protocol))) {
245
  return "ViewLandingPage";
246
+ } else if ($http_method == "GET" && $path == UBHTTP::$pie_htc_url) {
247
+ // proxy PIE.htc
248
+ return "ViewLandingPage";
249
  } else {
250
  return null;
251
  }
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.14
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.15
7
  Author: Unbounce
8
  Author URI: http://unbounce.com
9
  License: GPLv2
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.3
6
- Stable tag: 1.0.14
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
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.3
6
+ Stable tag: 1.0.15
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
templates/main_authorized_footer.php CHANGED
@@ -17,4 +17,4 @@ $refresh_button = get_submit_button('refreshing the Published Pages list', 'seco
17
  Check out our knowledge base.
18
  </a>
19
  <br/><a class="ub-diagnostics-link" href="<?php echo $diagnostics_url ?>">Click here for troubleshooting and plugin diagnostics</a>
20
- <p class="ub-version">Unbounce Version 1.0.14</p>
17
  Check out our knowledge base.
18
  </a>
19
  <br/><a class="ub-diagnostics-link" href="<?php echo $diagnostics_url ?>">Click here for troubleshooting and plugin diagnostics</a>
20
+ <p class="ub-version">Unbounce Version 1.0.15</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.14</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.15</p>