Changeset 2309156
- Timestamp:
- 05/20/2020 10:18:43 PM (5 years ago)
- Location:
- unbounce
- Files:
-
- 16 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
unbounce/tags/1.0.45/UBConfig.php
r2036200 r2309156 6 6 const UB_PLUGIN_NAME = 'ub-wordpress'; 7 7 const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP'; 8 const UB_USER_AGENT = 'Unbounce WP Plugin 1.0.4 4';9 const UB_VERSION = '1.0.4 4';8 const UB_USER_AGENT = 'Unbounce WP Plugin 1.0.45'; 9 const UB_VERSION = '1.0.45'; 10 10 11 11 // Option keys 12 12 const UB_ROUTES_CACHE_KEY = 'ub-route-cache'; 13 const UB_REMOTE_DEBUG_KEY = 'ub-remote-debug';14 13 const UB_PAGE_SERVER_DOMAIN_KEY = 'ub-page-server-domain'; 15 const UB_REMOTE_LOG_URL_KEY = 'ub-remote-log-url';16 const UB_REMOTE_EVENTS_URL_KEY = 'ub-remote-events-url';17 14 const UB_API_URL_KEY = 'ub-api-url'; 18 15 const UB_API_CLIENT_ID_KEY = 'ub-api-client-id'; … … 35 32 return array( 36 33 UBConfig::UB_ROUTES_CACHE_KEY => array(), 37 UBConfig::UB_REMOTE_DEBUG_KEY => UBConfig::default_remote_debug_enabled(),38 34 UBConfig::UB_PAGE_SERVER_DOMAIN_KEY => UBConfig::default_page_server_domain(), 39 UBConfig::UB_REMOTE_LOG_URL_KEY => UBConfig::default_remote_log_url(),40 UBConfig::UB_REMOTE_EVENTS_URL_KEY => UBConfig::default_remote_events_url(),41 35 UBConfig::UB_API_URL_KEY => UBConfig::default_api_url(), 42 36 UBConfig::UB_API_CLIENT_ID_KEY => UBConfig::default_api_client_id(), … … 69 63 } 70 64 71 public static function default_remote_log_url()72 {73 $url = getenv('UB_REMOTE_LOG_URL');74 return $url ? $url : 'https://events-gateway.unbounce.com/events/wordpress_logs';75 }76 77 public static function default_remote_events_url()78 {79 $url = getenv('UB_REMOTE_EVENTS_URL');80 return $url ? $url : 'https://events-gateway.unbounce.com/events/domains';81 }82 83 65 public static function default_api_url() 84 66 { … … 93 75 } 94 76 95 public static function default_remote_debug_enabled()96 {97 $debug_enabled = getenv('UB_REMOTE_DEBUG_ENABLED');98 return $debug_enabled ? $debug_enabled : 0;99 }100 101 77 public static function default_authorized_domains() 102 78 { … … 110 86 } 111 87 112 public static function remote_log_url()113 {114 return get_option(UBConfig::UB_REMOTE_LOG_URL_KEY, UBConfig::default_remote_log_url());115 }116 117 public static function remote_events_url()118 {119 return get_option(UBConfig::UB_REMOTE_EVENTS_URL_KEY, UBConfig::default_remote_events_url());120 }121 122 88 public static function api_url() 123 89 { … … 142 108 public static function debug_loggging_enabled() 143 109 { 144 return (defined('UB_ENABLE_LOCAL_LOGGING') && UB_ENABLE_LOCAL_LOGGING) || self::remote_debug_logging_enabled(); 145 } 146 147 public static function remote_debug_logging_enabled() 148 { 149 return get_option(UBConfig::UB_REMOTE_DEBUG_KEY, 0) == 1; 110 return (defined('UB_ENABLE_LOCAL_LOGGING') && UB_ENABLE_LOCAL_LOGGING); 150 111 } 151 112 -
unbounce/tags/1.0.45/UBDiagnostics.php
r2036200 r2309156 101 101 'PHP Version' => phpversion(), 102 102 'WordPress Version' => UBDiagnostics::wordpress_version(), 103 'Unbounce Plugin Version' => '1.0.4 4',103 'Unbounce Plugin Version' => '1.0.45', 104 104 'Checks' => self::pp(UBDiagnostics::checks($domain, $domain_info)), 105 105 'Options' => self::pp(UBDiagnostics::ub_options()), … … 179 179 'php' => phpversion(), 180 180 'wordpress' => UBDiagnostics::wordpress_version(), 181 'plugin_version' => '1.0.4 4',181 'plugin_version' => '1.0.45', 182 182 'curl_installed' => self::is_curl_installed(), 183 183 'xml_installed' => self::is_xml_installed(), … … 201 201 ); 202 202 } 203 204 /**205 * @param string|null $previousVersion206 */207 public static function sendActivationEvent($previousVersion = null)208 {209 if (!self::is_curl_installed()) {210 return;211 }212 213 $env = self::installationDetails();214 $sitemapRequest = self::testSiteMapRequest();215 $event = UBEvents::activationEvent($env, $sitemapRequest, $previousVersion);216 UBHTTP::send_event_to_events_gateway(UBConfig::remote_log_url(), $event);217 }218 203 } -
unbounce/tags/1.0.45/UBHTTP.php
r2005379 r2309156 447 447 } 448 448 } 449 450 public static function send_event_to_events_gateway($url, $data_string)451 {452 if (UBConfig::use_curl()) {453 UBHTTP::send_event_to_events_gateway_curl($url, $data_string);454 } else {455 UBHTTP::send_event_to_events_gateway_wp_remote($url, $data_string);456 }457 }458 459 private static function send_event_to_events_gateway_curl($url, $data_string)460 {461 try {462 $stream_function = function ($curl, $str) {463 return strlen($str);464 };465 466 $curl = curl_init();467 $curl_options = array(468 CURLOPT_URL => $url,469 CURLOPT_CUSTOMREQUEST => 'POST',470 CURLOPT_USERAGENT => UBConfig::UB_USER_AGENT,471 CURLOPT_FOLLOWLOCATION => false,472 CURLOPT_HTTPHEADER => array(473 'Content-Type: application/json',474 'Content-Length: ' . strlen($data_string)475 ),476 CURLOPT_HEADERFUNCTION => $stream_function,477 CURLOPT_WRITEFUNCTION => $stream_function,478 CURLOPT_POSTFIELDS => $data_string,479 CURLOPT_TIMEOUT => 2480 );481 curl_setopt_array($curl, $curl_options);482 $success = curl_exec($curl);483 $http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);484 485 if (!$success) {486 $message = 'Unable to send log messages to ' . $url . ': "'487 . curl_error($curl) . '" - HTTP status: ' . curl_errno($curl);488 UBLogger::warning($message);489 } elseif ($http_code >= 200 && $http_code < 300) {490 $message = 'Successfully sent log messsages to ' . $url491 . ' - HTTP status: ' . $http_code;492 UBLogger::debug($message);493 } else {494 $message = 'Unable to send log messages to ' . $url495 . ' - HTTP status: ' . $http_code;496 UBLogger::warning($message);497 }498 499 curl_close($curl);500 } catch (Exception $e) {501 $message = 'Unable to send log messages to ' . $url502 . ' - Error: ' . $e;503 UBLogger::warning($message);504 }505 }506 507 private static function send_event_to_events_gateway_wp_remote($url, $data_string)508 {509 $args = array(510 'method' => 'POST',511 'user-agent' => UBConfig::UB_USER_AGENT,512 'redirection' => 0,513 'timeout' => 2,514 'headers' => array(515 'Content-Type' => 'application/json',516 'Content-Length' => strlen($data_string)517 ),518 'body' => $data_string519 );520 521 $resp = wp_remote_request($url, $args);522 if (is_wp_error($resp)) {523 $message = "Unable to send log messages to '" . $url . "': " . $resp->get_error_message();524 UBLogger::warning($message);525 return;526 }527 528 $http_code = $resp['response']['code'];529 if ($http_code >= 200 && $http_code < 300) {530 $message = 'Successfully sent log messsages to ' . $url531 . ' - HTTP status: ' . $http_code;532 UBLogger::debug($message);533 } else {534 UBLogger::warning('$data_string=' . $data_string);535 $message = 'Unable to send log messages to ' . $url536 . ' - HTTP status: ' . $http_code;537 UBLogger::warning($message);538 }539 }540 449 } -
unbounce/tags/1.0.45/UBLogger.php
r1601650 r2309156 12 12 $GLOBALS['wp_log_plugins'][UBConfig::UB_PLUGIN_NAME] = array(); 13 13 $GLOBALS['wp_log_plugins'][UBConfig::UB_PLUGIN_NAME . '-vars'] = array(); 14 }15 16 public static function upload_logs_to_unbounce($url)17 {18 // The assumption is that if curl is not installed will likely have19 // reached support and would have been diagnosed through diagnostics20 if (!UBDiagnostics::is_curl_installed()) {21 return;22 }23 24 if (UBConfig::remote_debug_logging_enabled()) {25 $data = array(26 'messages' => $GLOBALS['wp_log'][UBConfig::UB_PLUGIN_NAME],27 'vars' => $GLOBALS['wp_log'][UBConfig::UB_PLUGIN_NAME . '-vars'],28 );29 UBHTTP::send_event_to_events_gateway($url, UBEvents::log_event($data));30 }31 14 } 32 15 -
unbounce/tags/1.0.45/Unbounce-Page.php
r2036200 r2309156 4 4 Plugin URI: http://unbounce.com 5 5 Description: Unbounce is the most powerful standalone landing page builder available. 6 Version: 1.0.4 46 Version: 1.0.45 7 7 Author: Unbounce 8 8 Author URI: http://unbounce.com … … 19 19 require_once dirname(__FILE__) . '/UBWPListTable.php'; 20 20 require_once dirname(__FILE__) . '/UBPageTable.php'; 21 require_once dirname(__FILE__) . '/UBEvents.php';22 21 require_once dirname(__FILE__) . '/UBTemplate.php'; 23 22 24 23 register_activation_hook(__FILE__, function () { 25 24 UBConfig::set_options_if_not_exist(); 26 27 // NOTE: This should be brought back when working on BEE-113628 // @UBDiagnostics::sendActivationEvent();29 25 }); 30 26 … … 146 142 add_action('admin_init', function () { 147 143 148 // If plugin was updated, send event to unbounce149 144 $pluginVersion = get_option(UBConfig::UB_PLUGIN_VERSION_KEY); 150 145 if (UBConfig::UB_VERSION != $pluginVersion) { 151 @UBDiagnostics::sendActivationEvent($pluginVersion);152 146 UBConfig::set_options_if_not_exist(); 153 147 update_option(UBConfig::UB_PLUGIN_VERSION_KEY, UBConfig::UB_VERSION); … … 270 264 271 265 UBConfig::update_authorization_options($domains, $data); 272 273 if (UBConfig::is_authorized_domain(UBConfig::domain())) {274 $event = UBEvents::successful_authorization_event($data);275 } else {276 $event = UBEvents::failed_authorization_event($data);277 }278 UBHTTP::send_event_to_events_gateway(UBConfig::remote_events_url(), $event);279 266 } else { 280 267 $authorization = 'failure'; … … 296 283 header("Location: $location"); 297 284 }); 298 299 add_action('shutdown', function () {300 UBLogger::upload_logs_to_unbounce(UBConfig::remote_log_url());301 }); -
unbounce/tags/1.0.45/readme.txt
r2036200 r2309156 3 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 4 Requires at least: 4.1.5 5 Tested up to: 5. 16 Stable tag: 1.0.4 47 Requires PHP: 5.35 Tested up to: 5.4 6 Stable tag: 1.0.45 7 Requires PHP: 7.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 44 44 - OpenSSL 1.0.1+ 45 45 46 We recommend at least PHP 5.6.46 We recommend at least PHP 7.2. 47 47 48 48 1. Create a Wordpress domain in [Unbounce](http://unbounce.com/ "The Mobile Responsive Landing Page Builder for Marketers") … … 101 101 102 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 107 * Tested with WP 5.4 103 108 104 109 = 1.0.44 = -
unbounce/tags/1.0.45/templates/main_authorized_footer.php
r2036200 r2309156 22 22 Click here for troubleshooting and plugin diagnostics 23 23 </a> 24 <p class="ub-version">Unbounce Version 1.0.4 4</p>24 <p class="ub-version">Unbounce Version 1.0.45</p> -
unbounce/tags/1.0.45/templates/main_unauthorized_footer.php
r2036200 r2309156 5 5 Click here for troubleshooting and plugin diagnostics 6 6 </a> 7 <p class="ub-version">Unbounce Version 1.0.4 4</p>7 <p class="ub-version">Unbounce Version 1.0.45</p> -
unbounce/trunk/UBConfig.php
r2036200 r2309156 6 6 const UB_PLUGIN_NAME = 'ub-wordpress'; 7 7 const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP'; 8 const UB_USER_AGENT = 'Unbounce WP Plugin 1.0.4 4';9 const UB_VERSION = '1.0.4 4';8 const UB_USER_AGENT = 'Unbounce WP Plugin 1.0.45'; 9 const UB_VERSION = '1.0.45'; 10 10 11 11 // Option keys 12 12 const UB_ROUTES_CACHE_KEY = 'ub-route-cache'; 13 const UB_REMOTE_DEBUG_KEY = 'ub-remote-debug';14 13 const UB_PAGE_SERVER_DOMAIN_KEY = 'ub-page-server-domain'; 15 const UB_REMOTE_LOG_URL_KEY = 'ub-remote-log-url';16 const UB_REMOTE_EVENTS_URL_KEY = 'ub-remote-events-url';17 14 const UB_API_URL_KEY = 'ub-api-url'; 18 15 const UB_API_CLIENT_ID_KEY = 'ub-api-client-id'; … … 35 32 return array( 36 33 UBConfig::UB_ROUTES_CACHE_KEY => array(), 37 UBConfig::UB_REMOTE_DEBUG_KEY => UBConfig::default_remote_debug_enabled(),38 34 UBConfig::UB_PAGE_SERVER_DOMAIN_KEY => UBConfig::default_page_server_domain(), 39 UBConfig::UB_REMOTE_LOG_URL_KEY => UBConfig::default_remote_log_url(),40 UBConfig::UB_REMOTE_EVENTS_URL_KEY => UBConfig::default_remote_events_url(),41 35 UBConfig::UB_API_URL_KEY => UBConfig::default_api_url(), 42 36 UBConfig::UB_API_CLIENT_ID_KEY => UBConfig::default_api_client_id(), … … 69 63 } 70 64 71 public static function default_remote_log_url()72 {73 $url = getenv('UB_REMOTE_LOG_URL');74 return $url ? $url : 'https://events-gateway.unbounce.com/events/wordpress_logs';75 }76 77 public static function default_remote_events_url()78 {79 $url = getenv('UB_REMOTE_EVENTS_URL');80 return $url ? $url : 'https://events-gateway.unbounce.com/events/domains';81 }82 83 65 public static function default_api_url() 84 66 { … … 93 75 } 94 76 95 public static function default_remote_debug_enabled()96 {97 $debug_enabled = getenv('UB_REMOTE_DEBUG_ENABLED');98 return $debug_enabled ? $debug_enabled : 0;99 }100 101 77 public static function default_authorized_domains() 102 78 { … … 110 86 } 111 87 112 public static function remote_log_url()113 {114 return get_option(UBConfig::UB_REMOTE_LOG_URL_KEY, UBConfig::default_remote_log_url());115 }116 117 public static function remote_events_url()118 {119 return get_option(UBConfig::UB_REMOTE_EVENTS_URL_KEY, UBConfig::default_remote_events_url());120 }121 122 88 public static function api_url() 123 89 { … … 142 108 public static function debug_loggging_enabled() 143 109 { 144 return (defined('UB_ENABLE_LOCAL_LOGGING') && UB_ENABLE_LOCAL_LOGGING) || self::remote_debug_logging_enabled(); 145 } 146 147 public static function remote_debug_logging_enabled() 148 { 149 return get_option(UBConfig::UB_REMOTE_DEBUG_KEY, 0) == 1; 110 return (defined('UB_ENABLE_LOCAL_LOGGING') && UB_ENABLE_LOCAL_LOGGING); 150 111 } 151 112 -
unbounce/trunk/UBDiagnostics.php
r2036200 r2309156 101 101 'PHP Version' => phpversion(), 102 102 'WordPress Version' => UBDiagnostics::wordpress_version(), 103 'Unbounce Plugin Version' => '1.0.4 4',103 'Unbounce Plugin Version' => '1.0.45', 104 104 'Checks' => self::pp(UBDiagnostics::checks($domain, $domain_info)), 105 105 'Options' => self::pp(UBDiagnostics::ub_options()), … … 179 179 'php' => phpversion(), 180 180 'wordpress' => UBDiagnostics::wordpress_version(), 181 'plugin_version' => '1.0.4 4',181 'plugin_version' => '1.0.45', 182 182 'curl_installed' => self::is_curl_installed(), 183 183 'xml_installed' => self::is_xml_installed(), … … 201 201 ); 202 202 } 203 204 /**205 * @param string|null $previousVersion206 */207 public static function sendActivationEvent($previousVersion = null)208 {209 if (!self::is_curl_installed()) {210 return;211 }212 213 $env = self::installationDetails();214 $sitemapRequest = self::testSiteMapRequest();215 $event = UBEvents::activationEvent($env, $sitemapRequest, $previousVersion);216 UBHTTP::send_event_to_events_gateway(UBConfig::remote_log_url(), $event);217 }218 203 } -
unbounce/trunk/UBHTTP.php
r2005379 r2309156 447 447 } 448 448 } 449 450 public static function send_event_to_events_gateway($url, $data_string)451 {452 if (UBConfig::use_curl()) {453 UBHTTP::send_event_to_events_gateway_curl($url, $data_string);454 } else {455 UBHTTP::send_event_to_events_gateway_wp_remote($url, $data_string);456 }457 }458 459 private static function send_event_to_events_gateway_curl($url, $data_string)460 {461 try {462 $stream_function = function ($curl, $str) {463 return strlen($str);464 };465 466 $curl = curl_init();467 $curl_options = array(468 CURLOPT_URL => $url,469 CURLOPT_CUSTOMREQUEST => 'POST',470 CURLOPT_USERAGENT => UBConfig::UB_USER_AGENT,471 CURLOPT_FOLLOWLOCATION => false,472 CURLOPT_HTTPHEADER => array(473 'Content-Type: application/json',474 'Content-Length: ' . strlen($data_string)475 ),476 CURLOPT_HEADERFUNCTION => $stream_function,477 CURLOPT_WRITEFUNCTION => $stream_function,478 CURLOPT_POSTFIELDS => $data_string,479 CURLOPT_TIMEOUT => 2480 );481 curl_setopt_array($curl, $curl_options);482 $success = curl_exec($curl);483 $http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);484 485 if (!$success) {486 $message = 'Unable to send log messages to ' . $url . ': "'487 . curl_error($curl) . '" - HTTP status: ' . curl_errno($curl);488 UBLogger::warning($message);489 } elseif ($http_code >= 200 && $http_code < 300) {490 $message = 'Successfully sent log messsages to ' . $url491 . ' - HTTP status: ' . $http_code;492 UBLogger::debug($message);493 } else {494 $message = 'Unable to send log messages to ' . $url495 . ' - HTTP status: ' . $http_code;496 UBLogger::warning($message);497 }498 499 curl_close($curl);500 } catch (Exception $e) {501 $message = 'Unable to send log messages to ' . $url502 . ' - Error: ' . $e;503 UBLogger::warning($message);504 }505 }506 507 private static function send_event_to_events_gateway_wp_remote($url, $data_string)508 {509 $args = array(510 'method' => 'POST',511 'user-agent' => UBConfig::UB_USER_AGENT,512 'redirection' => 0,513 'timeout' => 2,514 'headers' => array(515 'Content-Type' => 'application/json',516 'Content-Length' => strlen($data_string)517 ),518 'body' => $data_string519 );520 521 $resp = wp_remote_request($url, $args);522 if (is_wp_error($resp)) {523 $message = "Unable to send log messages to '" . $url . "': " . $resp->get_error_message();524 UBLogger::warning($message);525 return;526 }527 528 $http_code = $resp['response']['code'];529 if ($http_code >= 200 && $http_code < 300) {530 $message = 'Successfully sent log messsages to ' . $url531 . ' - HTTP status: ' . $http_code;532 UBLogger::debug($message);533 } else {534 UBLogger::warning('$data_string=' . $data_string);535 $message = 'Unable to send log messages to ' . $url536 . ' - HTTP status: ' . $http_code;537 UBLogger::warning($message);538 }539 }540 449 } -
unbounce/trunk/UBLogger.php
r1601650 r2309156 12 12 $GLOBALS['wp_log_plugins'][UBConfig::UB_PLUGIN_NAME] = array(); 13 13 $GLOBALS['wp_log_plugins'][UBConfig::UB_PLUGIN_NAME . '-vars'] = array(); 14 }15 16 public static function upload_logs_to_unbounce($url)17 {18 // The assumption is that if curl is not installed will likely have19 // reached support and would have been diagnosed through diagnostics20 if (!UBDiagnostics::is_curl_installed()) {21 return;22 }23 24 if (UBConfig::remote_debug_logging_enabled()) {25 $data = array(26 'messages' => $GLOBALS['wp_log'][UBConfig::UB_PLUGIN_NAME],27 'vars' => $GLOBALS['wp_log'][UBConfig::UB_PLUGIN_NAME . '-vars'],28 );29 UBHTTP::send_event_to_events_gateway($url, UBEvents::log_event($data));30 }31 14 } 32 15 -
unbounce/trunk/Unbounce-Page.php
r2036200 r2309156 4 4 Plugin URI: http://unbounce.com 5 5 Description: Unbounce is the most powerful standalone landing page builder available. 6 Version: 1.0.4 46 Version: 1.0.45 7 7 Author: Unbounce 8 8 Author URI: http://unbounce.com … … 19 19 require_once dirname(__FILE__) . '/UBWPListTable.php'; 20 20 require_once dirname(__FILE__) . '/UBPageTable.php'; 21 require_once dirname(__FILE__) . '/UBEvents.php';22 21 require_once dirname(__FILE__) . '/UBTemplate.php'; 23 22 24 23 register_activation_hook(__FILE__, function () { 25 24 UBConfig::set_options_if_not_exist(); 26 27 // NOTE: This should be brought back when working on BEE-113628 // @UBDiagnostics::sendActivationEvent();29 25 }); 30 26 … … 146 142 add_action('admin_init', function () { 147 143 148 // If plugin was updated, send event to unbounce149 144 $pluginVersion = get_option(UBConfig::UB_PLUGIN_VERSION_KEY); 150 145 if (UBConfig::UB_VERSION != $pluginVersion) { 151 @UBDiagnostics::sendActivationEvent($pluginVersion);152 146 UBConfig::set_options_if_not_exist(); 153 147 update_option(UBConfig::UB_PLUGIN_VERSION_KEY, UBConfig::UB_VERSION); … … 270 264 271 265 UBConfig::update_authorization_options($domains, $data); 272 273 if (UBConfig::is_authorized_domain(UBConfig::domain())) {274 $event = UBEvents::successful_authorization_event($data);275 } else {276 $event = UBEvents::failed_authorization_event($data);277 }278 UBHTTP::send_event_to_events_gateway(UBConfig::remote_events_url(), $event);279 266 } else { 280 267 $authorization = 'failure'; … … 296 283 header("Location: $location"); 297 284 }); 298 299 add_action('shutdown', function () {300 UBLogger::upload_logs_to_unbounce(UBConfig::remote_log_url());301 }); -
unbounce/trunk/readme.txt
r2036200 r2309156 3 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 4 Requires at least: 4.1.5 5 Tested up to: 5. 16 Stable tag: 1.0.4 47 Requires PHP: 5.35 Tested up to: 5.4 6 Stable tag: 1.0.45 7 Requires PHP: 7.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 44 44 - OpenSSL 1.0.1+ 45 45 46 We recommend at least PHP 5.6.46 We recommend at least PHP 7.2. 47 47 48 48 1. Create a Wordpress domain in [Unbounce](http://unbounce.com/ "The Mobile Responsive Landing Page Builder for Marketers") … … 101 101 102 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 107 * Tested with WP 5.4 103 108 104 109 = 1.0.44 = -
unbounce/trunk/templates/main_authorized_footer.php
r2036200 r2309156 22 22 Click here for troubleshooting and plugin diagnostics 23 23 </a> 24 <p class="ub-version">Unbounce Version 1.0.4 4</p>24 <p class="ub-version">Unbounce Version 1.0.45</p> -
unbounce/trunk/templates/main_unauthorized_footer.php
r2036200 r2309156 5 5 Click here for troubleshooting and plugin diagnostics 6 6 </a> 7 <p class="ub-version">Unbounce Version 1.0.4 4</p>7 <p class="ub-version">Unbounce Version 1.0.45</p>
Note: See TracChangeset
for help on using the changeset viewer.