Plugin Directory

Changeset 1372439


Ignore:
Timestamp:
03/16/2016 04:24:25 PM (9 years ago)
Author:
unbouncewordpress
Message:

Releasing version 1.0.20

Location:
unbounce
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • unbounce/tags/1.0.20/UBCompatibility.php

    r1370998 r1372439  
    11<?php
    22
    3 // taken from: http://php.net/manual/en/function.http-response-code.php
    43// For 4.3.0 <= PHP <= 5.4.0
    54if (!function_exists('http_response_code')) {
     
    6867}
    6968
    70 // taken from: http://php.net/manual/en/function.getallheaders.php
    71 if (!function_exists('getallheaders'))
    72 {
    73     function getallheaders()
    74     {
    75        $headers = '';
    76        foreach ($_SERVER as $name => $value)
    77        {
    78            if (substr($name, 0, 5) == 'HTTP_')
    79            {
    80                $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
    81            }
    82        }
    83        return $headers;
    84     }
    85 }
    86 
    8769?>
  • unbounce/tags/1.0.20/UBConfig.php

    r1370998 r1372439  
    55  const UB_PLUGIN_NAME           = 'ub-wordpress';
    66  const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP';
    7   const UB_USER_AGENT            = 'Unbounce WP Plugin 1.0.19';
    8   const UB_VERSION               = '1.0.19';
     7  const UB_USER_AGENT            = 'Unbounce WP Plugin 1.0.20';
     8  const UB_VERSION               = '1.0.20';
    99
    1010  # Option keys
  • unbounce/tags/1.0.20/UBDiagnostics.php

    r1370998 r1372439  
    2929      'PHP Version'             => phpversion(),
    3030      'WordPress Version'       => UBDiagnostics::wordpress_version(),
    31       'Unbounce Plugin Version' => "1.0.19",
     31      'Unbounce Plugin Version' => "1.0.20",
    3232      'Permalink Structure'     => get_option('permalink_structure', ''),
    3333      'Domain'                  => $domain,
  • unbounce/tags/1.0.20/UBHTTP.php

    r1370998 r1372439  
    88  public static $pie_htc_url = '/PIE.htc';
    99  // 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:|Content-Encoding:|Location:|Link:|Content-Location:|Set-Cookie:|X-Server-Instance:|X-Unbounce-PageId:|X-Unbounce-Variant:|X-Unbounce-VisitorID:)/i';
     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';
    1111
    1212  public static function is_private_ip_address($ip_address) {
     
    127127  }
    128128
    129   // taken from: http://stackoverflow.com/a/13036310/322727
    130   private static function convert_headers_to_curl($headers) {
    131     // map to curl-friendly format
    132     $req_headers = array();
    133     array_walk($headers, function(&$v, $k) use (&$req_headers) {
    134       array_push($req_headers, $k . ": " . $v);
    135     });
    136 
    137     return $req_headers;
    138   }
    139 
    140129  public static function stream_request($method,
    141130                                        $target_url,
     
    148137    $remote_ip = UBUtil::array_fetch($_SERVER, 'REMOTE_ADDR');
    149138
    150     $curl_headers = UBHTTP::convert_headers_to_curl($headers0);
    151 
    152     $headers = UBHTTP::get_proxied_for_header($curl_headers,
     139    $headers = UBHTTP::get_proxied_for_header($headers0,
    153140                                              $forwarded_for,
    154141                                              $remote_ip);
  • unbounce/tags/1.0.20/Unbounce-Page.php

    r1370998 r1372439  
    44Plugin URI: http://unbounce.com
    55Description: Unbounce is the most powerful standalone landing page builder available.
    6 Version: 1.0.19
     6Version: 1.0.20
    77Author: Unbounce
    88Author URI: http://unbounce.com
     
    135135    $cookie_string = UBHTTP::cookie_string_from_array($cookies_to_forward);
    136136
    137     $all_headers = getallheaders();
    138     $all_headers['Host'] = $domain;
     137    $req_headers = $referer == null ? array('Host: ' . $domain) : array('Referer: ' . $referer, 'Host: ' . $domain);
    139138
    140139    // Make sure we don't get cached by Wordpress hosts like WPEngine
     
    144143                                                      $raw_url,
    145144                                                      $cookie_string,
    146                                                       $all_headers,
     145                                                      $req_headers,
    147146                                                      $user_agent);
    148147
  • unbounce/tags/1.0.20/readme.txt

    r1370998 r1372439  
    44Requires at least: 4.1.5
    55Tested up to: 4.4
    6 Stable tag: 1.0.19
     6Stable tag: 1.0.20
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • unbounce/tags/1.0.20/templates/main_authorized_footer.php

    r1370998 r1372439  
    1818</a>
    1919<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.19</p>
     20<p class="ub-version">Unbounce Version 1.0.20</p>
  • unbounce/tags/1.0.20/templates/main_unauthorized_footer.php

    r1370998 r1372439  
    55  Click here for troubleshooting and plugin diagnostics
    66</a>
    7 <p class="ub-version">Unbounce Version 1.0.19</p>
     7<p class="ub-version">Unbounce Version 1.0.20</p>
  • unbounce/trunk/UBCompatibility.php

    r1370998 r1372439  
    11<?php
    22
    3 // taken from: http://php.net/manual/en/function.http-response-code.php
    43// For 4.3.0 <= PHP <= 5.4.0
    54if (!function_exists('http_response_code')) {
     
    6867}
    6968
    70 // taken from: http://php.net/manual/en/function.getallheaders.php
    71 if (!function_exists('getallheaders'))
    72 {
    73     function getallheaders()
    74     {
    75        $headers = '';
    76        foreach ($_SERVER as $name => $value)
    77        {
    78            if (substr($name, 0, 5) == 'HTTP_')
    79            {
    80                $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
    81            }
    82        }
    83        return $headers;
    84     }
    85 }
    86 
    8769?>
  • unbounce/trunk/UBConfig.php

    r1370998 r1372439  
    55  const UB_PLUGIN_NAME           = 'ub-wordpress';
    66  const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP';
    7   const UB_USER_AGENT            = 'Unbounce WP Plugin 1.0.19';
    8   const UB_VERSION               = '1.0.19';
     7  const UB_USER_AGENT            = 'Unbounce WP Plugin 1.0.20';
     8  const UB_VERSION               = '1.0.20';
    99
    1010  # Option keys
  • unbounce/trunk/UBDiagnostics.php

    r1370998 r1372439  
    2929      'PHP Version'             => phpversion(),
    3030      'WordPress Version'       => UBDiagnostics::wordpress_version(),
    31       'Unbounce Plugin Version' => "1.0.19",
     31      'Unbounce Plugin Version' => "1.0.20",
    3232      'Permalink Structure'     => get_option('permalink_structure', ''),
    3333      'Domain'                  => $domain,
  • unbounce/trunk/UBHTTP.php

    r1370998 r1372439  
    88  public static $pie_htc_url = '/PIE.htc';
    99  // 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:|Content-Encoding:|Location:|Link:|Content-Location:|Set-Cookie:|X-Server-Instance:|X-Unbounce-PageId:|X-Unbounce-Variant:|X-Unbounce-VisitorID:)/i';
     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';
    1111
    1212  public static function is_private_ip_address($ip_address) {
     
    127127  }
    128128
    129   // taken from: http://stackoverflow.com/a/13036310/322727
    130   private static function convert_headers_to_curl($headers) {
    131     // map to curl-friendly format
    132     $req_headers = array();
    133     array_walk($headers, function(&$v, $k) use (&$req_headers) {
    134       array_push($req_headers, $k . ": " . $v);
    135     });
    136 
    137     return $req_headers;
    138   }
    139 
    140129  public static function stream_request($method,
    141130                                        $target_url,
     
    148137    $remote_ip = UBUtil::array_fetch($_SERVER, 'REMOTE_ADDR');
    149138
    150     $curl_headers = UBHTTP::convert_headers_to_curl($headers0);
    151 
    152     $headers = UBHTTP::get_proxied_for_header($curl_headers,
     139    $headers = UBHTTP::get_proxied_for_header($headers0,
    153140                                              $forwarded_for,
    154141                                              $remote_ip);
  • unbounce/trunk/Unbounce-Page.php

    r1370998 r1372439  
    44Plugin URI: http://unbounce.com
    55Description: Unbounce is the most powerful standalone landing page builder available.
    6 Version: 1.0.19
     6Version: 1.0.20
    77Author: Unbounce
    88Author URI: http://unbounce.com
     
    135135    $cookie_string = UBHTTP::cookie_string_from_array($cookies_to_forward);
    136136
    137     $all_headers = getallheaders();
    138     $all_headers['Host'] = $domain;
     137    $req_headers = $referer == null ? array('Host: ' . $domain) : array('Referer: ' . $referer, 'Host: ' . $domain);
    139138
    140139    // Make sure we don't get cached by Wordpress hosts like WPEngine
     
    144143                                                      $raw_url,
    145144                                                      $cookie_string,
    146                                                       $all_headers,
     145                                                      $req_headers,
    147146                                                      $user_agent);
    148147
  • unbounce/trunk/readme.txt

    r1370998 r1372439  
    44Requires at least: 4.1.5
    55Tested up to: 4.4
    6 Stable tag: 1.0.19
     6Stable tag: 1.0.20
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • unbounce/trunk/templates/main_authorized_footer.php

    r1370998 r1372439  
    1818</a>
    1919<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.19</p>
     20<p class="ub-version">Unbounce Version 1.0.20</p>
  • unbounce/trunk/templates/main_unauthorized_footer.php

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