Plugin Directory

Changeset 2309156


Ignore:
Timestamp:
05/20/2020 10:18:43 PM (5 years ago)
Author:
unbouncewordpress
Message:

Releasing version 1.0.45

Location:
unbounce
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • unbounce/tags/1.0.45/UBConfig.php

    r2036200 r2309156  
    66    const UB_PLUGIN_NAME           = 'ub-wordpress';
    77    const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP';
    8     const UB_USER_AGENT            = 'Unbounce WP Plugin 1.0.44';
    9     const UB_VERSION               = '1.0.44';
     8    const UB_USER_AGENT            = 'Unbounce WP Plugin 1.0.45';
     9    const UB_VERSION               = '1.0.45';
    1010
    1111  // Option keys
    1212    const UB_ROUTES_CACHE_KEY        = 'ub-route-cache';
    13     const UB_REMOTE_DEBUG_KEY        = 'ub-remote-debug';
    1413    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';
    1714    const UB_API_URL_KEY             = 'ub-api-url';
    1815    const UB_API_CLIENT_ID_KEY       = 'ub-api-client-id';
     
    3532        return array(
    3633        UBConfig::UB_ROUTES_CACHE_KEY => array(),
    37         UBConfig::UB_REMOTE_DEBUG_KEY => UBConfig::default_remote_debug_enabled(),
    3834        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(),
    4135        UBConfig::UB_API_URL_KEY => UBConfig::default_api_url(),
    4236        UBConfig::UB_API_CLIENT_ID_KEY => UBConfig::default_api_client_id(),
     
    6963    }
    7064
    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 
    8365    public static function default_api_url()
    8466    {
     
    9375    }
    9476
    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 
    10177    public static function default_authorized_domains()
    10278    {
     
    11086    }
    11187
    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 
    12288    public static function api_url()
    12389    {
     
    142108    public static function debug_loggging_enabled()
    143109    {
    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);
    150111    }
    151112
  • unbounce/tags/1.0.45/UBDiagnostics.php

    r2036200 r2309156  
    101101        'PHP Version'             => phpversion(),
    102102        'WordPress Version'       => UBDiagnostics::wordpress_version(),
    103         'Unbounce Plugin Version' => '1.0.44',
     103        'Unbounce Plugin Version' => '1.0.45',
    104104        'Checks'                  => self::pp(UBDiagnostics::checks($domain, $domain_info)),
    105105        'Options'                 => self::pp(UBDiagnostics::ub_options()),
     
    179179            'php'                 => phpversion(),
    180180            'wordpress'           => UBDiagnostics::wordpress_version(),
    181             'plugin_version'      => '1.0.44',
     181            'plugin_version'      => '1.0.45',
    182182            'curl_installed'      => self::is_curl_installed(),
    183183            'xml_installed'       => self::is_xml_installed(),
     
    201201        );
    202202    }
    203 
    204     /**
    205      * @param string|null $previousVersion
    206      */
    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     }
    218203}
  • unbounce/tags/1.0.45/UBHTTP.php

    r2005379 r2309156  
    447447        }
    448448    }
    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 => 2
    480             );
    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 ' . $url
    491                            . ' - HTTP status: ' . $http_code;
    492                   UBLogger::debug($message);
    493             } else {
    494                   $message = 'Unable to send log messages to ' . $url
    495                            . ' - 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 ' . $url
    502                . ' - 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_string
    519         );
    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 ' . $url
    531                 . ' - 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 ' . $url
    536                 . ' - HTTP status: ' . $http_code;
    537             UBLogger::warning($message);
    538         }
    539     }
    540449}
  • unbounce/tags/1.0.45/UBLogger.php

    r1601650 r2309156  
    1212        $GLOBALS['wp_log_plugins'][UBConfig::UB_PLUGIN_NAME] = array();
    1313        $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 have
    19         // reached support and would have been diagnosed through diagnostics
    20         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         }
    3114    }
    3215
  • unbounce/tags/1.0.45/Unbounce-Page.php

    r2036200 r2309156  
    44Plugin URI: http://unbounce.com
    55Description: Unbounce is the most powerful standalone landing page builder available.
    6 Version: 1.0.44
     6Version: 1.0.45
    77Author: Unbounce
    88Author URI: http://unbounce.com
     
    1919require_once dirname(__FILE__) . '/UBWPListTable.php';
    2020require_once dirname(__FILE__) . '/UBPageTable.php';
    21 require_once dirname(__FILE__) . '/UBEvents.php';
    2221require_once dirname(__FILE__) . '/UBTemplate.php';
    2322
    2423register_activation_hook(__FILE__, function () {
    2524    UBConfig::set_options_if_not_exist();
    26 
    27     // NOTE: This should be brought back when working on BEE-1136
    28     // @UBDiagnostics::sendActivationEvent();
    2925});
    3026
     
    146142add_action('admin_init', function () {
    147143
    148     // If plugin was updated, send event to unbounce
    149144    $pluginVersion = get_option(UBConfig::UB_PLUGIN_VERSION_KEY);
    150145    if (UBConfig::UB_VERSION != $pluginVersion) {
    151         @UBDiagnostics::sendActivationEvent($pluginVersion);
    152146        UBConfig::set_options_if_not_exist();
    153147        update_option(UBConfig::UB_PLUGIN_VERSION_KEY, UBConfig::UB_VERSION);
     
    270264
    271265        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);
    279266    } else {
    280267        $authorization = 'failure';
     
    296283    header("Location: $location");
    297284});
    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  
    33Tags: 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
    44Requires at least: 4.1.5
    5 Tested up to: 5.1
    6 Stable tag: 1.0.44
    7 Requires PHP: 5.3
     5Tested up to: 5.4
     6Stable tag: 1.0.45
     7Requires PHP: 7.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444- OpenSSL 1.0.1+
    4545
    46 We recommend at least PHP 5.6.
     46We recommend at least PHP 7.2.
    4747
    48481. Create a Wordpress domain in [Unbounce](http://unbounce.com/ "The Mobile Responsive Landing Page Builder for Marketers")
     
    101101
    102102== 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
    103108
    104109= 1.0.44 =
  • unbounce/tags/1.0.45/templates/main_authorized_footer.php

    r2036200 r2309156  
    2222  Click here for troubleshooting and plugin diagnostics
    2323</a>
    24 <p class="ub-version">Unbounce Version 1.0.44</p>
     24<p class="ub-version">Unbounce Version 1.0.45</p>
  • unbounce/tags/1.0.45/templates/main_unauthorized_footer.php

    r2036200 r2309156  
    55  Click here for troubleshooting and plugin diagnostics
    66</a>
    7 <p class="ub-version">Unbounce Version 1.0.44</p>
     7<p class="ub-version">Unbounce Version 1.0.45</p>
  • unbounce/trunk/UBConfig.php

    r2036200 r2309156  
    66    const UB_PLUGIN_NAME           = 'ub-wordpress';
    77    const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP';
    8     const UB_USER_AGENT            = 'Unbounce WP Plugin 1.0.44';
    9     const UB_VERSION               = '1.0.44';
     8    const UB_USER_AGENT            = 'Unbounce WP Plugin 1.0.45';
     9    const UB_VERSION               = '1.0.45';
    1010
    1111  // Option keys
    1212    const UB_ROUTES_CACHE_KEY        = 'ub-route-cache';
    13     const UB_REMOTE_DEBUG_KEY        = 'ub-remote-debug';
    1413    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';
    1714    const UB_API_URL_KEY             = 'ub-api-url';
    1815    const UB_API_CLIENT_ID_KEY       = 'ub-api-client-id';
     
    3532        return array(
    3633        UBConfig::UB_ROUTES_CACHE_KEY => array(),
    37         UBConfig::UB_REMOTE_DEBUG_KEY => UBConfig::default_remote_debug_enabled(),
    3834        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(),
    4135        UBConfig::UB_API_URL_KEY => UBConfig::default_api_url(),
    4236        UBConfig::UB_API_CLIENT_ID_KEY => UBConfig::default_api_client_id(),
     
    6963    }
    7064
    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 
    8365    public static function default_api_url()
    8466    {
     
    9375    }
    9476
    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 
    10177    public static function default_authorized_domains()
    10278    {
     
    11086    }
    11187
    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 
    12288    public static function api_url()
    12389    {
     
    142108    public static function debug_loggging_enabled()
    143109    {
    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);
    150111    }
    151112
  • unbounce/trunk/UBDiagnostics.php

    r2036200 r2309156  
    101101        'PHP Version'             => phpversion(),
    102102        'WordPress Version'       => UBDiagnostics::wordpress_version(),
    103         'Unbounce Plugin Version' => '1.0.44',
     103        'Unbounce Plugin Version' => '1.0.45',
    104104        'Checks'                  => self::pp(UBDiagnostics::checks($domain, $domain_info)),
    105105        'Options'                 => self::pp(UBDiagnostics::ub_options()),
     
    179179            'php'                 => phpversion(),
    180180            'wordpress'           => UBDiagnostics::wordpress_version(),
    181             'plugin_version'      => '1.0.44',
     181            'plugin_version'      => '1.0.45',
    182182            'curl_installed'      => self::is_curl_installed(),
    183183            'xml_installed'       => self::is_xml_installed(),
     
    201201        );
    202202    }
    203 
    204     /**
    205      * @param string|null $previousVersion
    206      */
    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     }
    218203}
  • unbounce/trunk/UBHTTP.php

    r2005379 r2309156  
    447447        }
    448448    }
    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 => 2
    480             );
    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 ' . $url
    491                            . ' - HTTP status: ' . $http_code;
    492                   UBLogger::debug($message);
    493             } else {
    494                   $message = 'Unable to send log messages to ' . $url
    495                            . ' - 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 ' . $url
    502                . ' - 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_string
    519         );
    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 ' . $url
    531                 . ' - 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 ' . $url
    536                 . ' - HTTP status: ' . $http_code;
    537             UBLogger::warning($message);
    538         }
    539     }
    540449}
  • unbounce/trunk/UBLogger.php

    r1601650 r2309156  
    1212        $GLOBALS['wp_log_plugins'][UBConfig::UB_PLUGIN_NAME] = array();
    1313        $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 have
    19         // reached support and would have been diagnosed through diagnostics
    20         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         }
    3114    }
    3215
  • unbounce/trunk/Unbounce-Page.php

    r2036200 r2309156  
    44Plugin URI: http://unbounce.com
    55Description: Unbounce is the most powerful standalone landing page builder available.
    6 Version: 1.0.44
     6Version: 1.0.45
    77Author: Unbounce
    88Author URI: http://unbounce.com
     
    1919require_once dirname(__FILE__) . '/UBWPListTable.php';
    2020require_once dirname(__FILE__) . '/UBPageTable.php';
    21 require_once dirname(__FILE__) . '/UBEvents.php';
    2221require_once dirname(__FILE__) . '/UBTemplate.php';
    2322
    2423register_activation_hook(__FILE__, function () {
    2524    UBConfig::set_options_if_not_exist();
    26 
    27     // NOTE: This should be brought back when working on BEE-1136
    28     // @UBDiagnostics::sendActivationEvent();
    2925});
    3026
     
    146142add_action('admin_init', function () {
    147143
    148     // If plugin was updated, send event to unbounce
    149144    $pluginVersion = get_option(UBConfig::UB_PLUGIN_VERSION_KEY);
    150145    if (UBConfig::UB_VERSION != $pluginVersion) {
    151         @UBDiagnostics::sendActivationEvent($pluginVersion);
    152146        UBConfig::set_options_if_not_exist();
    153147        update_option(UBConfig::UB_PLUGIN_VERSION_KEY, UBConfig::UB_VERSION);
     
    270264
    271265        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);
    279266    } else {
    280267        $authorization = 'failure';
     
    296283    header("Location: $location");
    297284});
    298 
    299 add_action('shutdown', function () {
    300     UBLogger::upload_logs_to_unbounce(UBConfig::remote_log_url());
    301 });
  • unbounce/trunk/readme.txt

    r2036200 r2309156  
    33Tags: 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
    44Requires at least: 4.1.5
    5 Tested up to: 5.1
    6 Stable tag: 1.0.44
    7 Requires PHP: 5.3
     5Tested up to: 5.4
     6Stable tag: 1.0.45
     7Requires PHP: 7.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444- OpenSSL 1.0.1+
    4545
    46 We recommend at least PHP 5.6.
     46We recommend at least PHP 7.2.
    4747
    48481. Create a Wordpress domain in [Unbounce](http://unbounce.com/ "The Mobile Responsive Landing Page Builder for Marketers")
     
    101101
    102102== 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
    103108
    104109= 1.0.44 =
  • unbounce/trunk/templates/main_authorized_footer.php

    r2036200 r2309156  
    2222  Click here for troubleshooting and plugin diagnostics
    2323</a>
    24 <p class="ub-version">Unbounce Version 1.0.44</p>
     24<p class="ub-version">Unbounce Version 1.0.45</p>
  • unbounce/trunk/templates/main_unauthorized_footer.php

    r2036200 r2309156  
    55  Click here for troubleshooting and plugin diagnostics
    66</a>
    7 <p class="ub-version">Unbounce Version 1.0.44</p>
     7<p class="ub-version">Unbounce Version 1.0.45</p>
Note: See TracChangeset for help on using the changeset viewer.