Unbounce Landing Pages - Version 1.0.12

Version Description

Download this release

Release Info

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

Code changes from version 1.0.11 to 1.0.12

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.11';
8
- const UB_VERSION = '1.0.11';
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.12';
8
+ const UB_VERSION = '1.0.12';
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.11",
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.12",
32
  'Permalink Structure' => get_option('permalink_structure', ''),
33
  'Domain' => $domain,
34
  'Domain Authorized' => print_r(UBConfig::is_authorized_domain($domain), true),
UBHTTP.php CHANGED
@@ -153,7 +153,7 @@ class UBHTTP {
153
  CURLOPT_HEADERFUNCTION => $stream_headers,
154
  CURLOPT_WRITEFUNCTION => $stream_body,
155
  CURLOPT_FOLLOWLOCATION => false,
156
- CURLOPT_TIMEOUT => 5
157
  );
158
 
159
  if ($method == "POST") {
@@ -164,8 +164,7 @@ class UBHTTP {
164
  curl_setopt_array($curl, $curl_options);
165
  $resp = curl_exec($curl);
166
  if(!$resp){
167
- $message = 'Error proxying to "' . $target_url . ", " . $original_target_url
168
- . '": "' . curl_error($curl) . '" - Code: ' . curl_errno($curl);
169
  UBLogger::warning($message);
170
  http_response_code(500);
171
  }
153
  CURLOPT_HEADERFUNCTION => $stream_headers,
154
  CURLOPT_WRITEFUNCTION => $stream_body,
155
  CURLOPT_FOLLOWLOCATION => false,
156
+ CURLOPT_TIMEOUT => 30
157
  );
158
 
159
  if ($method == "POST") {
164
  curl_setopt_array($curl, $curl_options);
165
  $resp = curl_exec($curl);
166
  if(!$resp){
167
+ $message = 'Error proxying to "' . $target_url . ", " . '": "' . curl_error($curl) . '" - Code: ' . curl_errno($curl);
 
168
  UBLogger::warning($message);
169
  http_response_code(500);
170
  }
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.11
7
  Author: Unbounce
8
  Author URI: http://unbounce.com
9
  License: GPLv2
@@ -240,7 +240,9 @@ add_action('admin_menu', function() {
240
 
241
  add_action('admin_post_set_unbounce_domains', function() {
242
  $domains_list = UBUtil::array_fetch($_POST, 'domains', '');
243
- $domains = explode(',', $domains_list);
 
 
244
 
245
  if($domains && is_array($domains)) {
246
  $authorization = 'success';
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.12
7
  Author: Unbounce
8
  Author URI: http://unbounce.com
9
  License: GPLv2
240
 
241
  add_action('admin_post_set_unbounce_domains', function() {
242
  $domains_list = UBUtil::array_fetch($_POST, 'domains', '');
243
+ $domains = array_filter(explode(',', $domains_list), function($domain) {
244
+ return $domain == UBConfig::domain();
245
+ });
246
 
247
  if($domains && is_array($domains)) {
248
  $authorization = 'success';
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.11
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.12
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.11</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.12</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.11</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.12</p>