Plugin Directory

Changeset 3232302


Ignore:
Timestamp:
01/30/2025 09:07:47 PM (13 months ago)
Author:
jrozanski
Message:

Version 1.0.9

Location:
wide-angle-analytics/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wide-angle-analytics/trunk/readme.txt

    r3080050 r3232302  
    55Tested up to: 6.5.2
    66Requires PHP: 7.2
    7 Stable tag: 1.0.8
     7Stable tag: 1.0.9
    88License: GPLv2
    99
     
    6262
    6363== Changelog ==
     64v1.0.9
     65- Correct the API type from "supress" to "suppress"
     66
    6467V1.0.8
    6568- Expose DNT Flag override
  • wide-angle-analytics/trunk/types/WideAngleAttributes.php

    r3080050 r3232302  
    77  public $exclusionString;
    88  public $includeParamsString;
    9   public $supressDnt;
     9  public $suppressDnt;
    1010  private $helpers;
    1111
    12   public function __construct($siteId, $trackerDomain, $ignoreHash, $exclusionString, $includeParamsString, $fingerprint, $supressDnt) {
     12  public function __construct($siteId, $trackerDomain, $ignoreHash, $exclusionString, $includeParamsString, $fingerprint, $suppressDnt) {
    1313    $this->siteId = $siteId;
    1414    $this->trackerDomain = $trackerDomain;
     
    1818    $this->fingerprint = $fingerprint;
    1919    $this->ePrivacyMode = $ePrivacyMode;
    20     $this->supressDnt = $supressDnt;
     20    $this->suppressDnt = $suppressDnt;
    2121    $this->helpers = new WideAngleHelpers();
    2222  }
     
    2828      'ignore_hash' => $this->ignoreHash,
    2929      'fingerprint' => $this->fingerprint,
    30       'supress_dnt' => $this->supressDnt,
     30      'suppress_dnt' => $this->suppressDnt,
    3131      'exclusion_paths' => $this->generateExclusionsAttribute(),
    3232      'include_params' => $this->generateIncludeParamsAttribute()
  • wide-angle-analytics/trunk/types/WideAngleGenerator.php

    r3080050 r3232302  
    1616    $this->includeParams    = $attributes['include_params'];
    1717    $this->fingerprint      = $attributes['fingerprint'];
    18     $this->supressDnt       = $attributes['supress_dnt'];
     18    $this->suppressDnt       = $attributes['suppress_dnt'];
    1919  }
    2020
     
    3434    $ignoreHashAttribute    = $this->ignoreHash != ''           ? "data-waa-ignore-hash=\""   . esc_attr($this->ignoreHash)     . "\"": 'data-waa-ignore-hash="false"';
    3535    $fingerprintAttribute   = $this->fingerprint != ''          ? "data-waa-fingerprint=\""   . esc_attr($this->fingerprint)    . "\"": '';
    36     $supressDntAttribute    = $this->supressDnt != ''           ? "data-waa-dnt-supress=\""   . esc_attr($this->supressDnt)     . "\"": 'data-waa-dnt-supress="false"';
     36    $suppressDntAttribute    = $this->suppressDnt != ''           ? "data-waa-dnt-suppress=\""   . esc_attr($this->suppressDnt)     . "\"": 'data-waa-dnt-suppress="false"';
    3737    $script = <<<EOD
    3838<script async defer
     
    4040  $fingerprintAttribute
    4141  $ignoreHashAttribute
    42   $supressDntAttribute
     42  $suppressDntAttribute
    4343  $includeParamsAttribute
    4444  $pathExlusionsAttribute></script>
  • wide-angle-analytics/trunk/types/WideAngleHelpers.php

    r3080050 r3232302  
    3030  }
    3131
    32   function validateSupressDntFlag($name, $supressDnt) {
    33     if(filter_var($supressDnt, FILTER_VALIDATE_BOOLEAN)) {
    34       return WideAngleValidated::createValid($name, $supressDnt, "true");
     32  function validateSuppressDntFlag($name, $suppressDnt) {
     33    if(filter_var($suppressDnt, FILTER_VALIDATE_BOOLEAN)) {
     34      return WideAngleValidated::createValid($name, $suppressDnt, "true");
    3535    } else {
    36       return WideAngleValidated::createValid($name, $supressDnt, "false");
     36      return WideAngleValidated::createValid($name, $suppressDnt, "false");
    3737    }
    3838  }
  • wide-angle-analytics/trunk/views/admin_settings.php

    r3080050 r3232302  
    33$trackerDomain        = wp_unslash($this->settings[self::WAA_CONF_TRACKER_DOMAIN]);
    44$ignoreHash           = filter_var($this->settings[self::WAA_CONF_IGNORE_HASH], FILTER_VALIDATE_BOOLEAN);
    5 $supressDnt           = filter_var($this->settings[self::WAA_CONF_SUPRESS_DNT], FILTER_VALIDATE_BOOLEAN);
     5$suppressDnt           = filter_var($this->settings[self::WAA_CONF_SUPPRESS_DNT], FILTER_VALIDATE_BOOLEAN);
    66$fingerprint          = filter_var($this->settings[self::WAA_CONF_FINGERPRINT], FILTER_VALIDATE_BOOLEAN);
    77$parsedExclusions     = $this->plugin->helpers->parseExclusionSetting(wp_unslash($this->settings[self::WAA_CONF_EXC_PATHS]));
     
    129129          </tr>
    130130          <tr>
    131             <th scope="row"><label>Supress Do-Not-Track</label></th>
     131            <th scope="row"><label>Suppress Do-Not-Track</label></th>
    132132            <td>
    133133              <fieldset>
    134                 <legend class="screen-reader-text"><span>Supress Do-Not-Track</span></legend>
     134                <legend class="screen-reader-text"><span>Suppress Do-Not-Track</span></legend>
    135135                <label>
    136                   <input id="waa_supress_dnt" type="checkbox" name="waa_supress_dnt" <?php if($supressDnt) { echo "checked"; } ?>/> Supress
     136                  <input id="waa_suppress_dnt" type="checkbox" name="waa_suppress_dnt" <?php if($suppressDnt) { echo "checked"; } ?>/> Suppress
    137137                </label>
    138138              </fieldset>
  • wide-angle-analytics/trunk/wide-angle-analytics.php

    r3080050 r3232302  
    66  Author:               Wide Angle Analytics by Input Objects GmbH
    77  Author URI:           https://wideangle.co
    8   Version:              1.0.8
     8  Version:              1.0.9
    99  Requires at least:    5.2
    1010  Requires PHP:         7.2
     
    2222  const WAA_CONF_INC_PARAMS               = "waa_inc_params";
    2323  const WAA_CONF_IGNORE_HASH              = "waa_ignore_hash";
    24   const WAA_CONF_SUPRESS_DNT              = "waa_supress_dnt";
     24  const WAA_CONF_SUPPRESS_DNT              = "waa_suppress_dnt";
    2525  const WAA_CONF_ATTRIBUTES               = "waa_attributes";
    2626
     
    124124        $waaIgnoreHash      = $this->plugin->helpers->validateIgnoreHashFlag(self::WAA_CONF_IGNORE_HASH, sanitize_text_field($_REQUEST['waa_ignore_hash']));
    125125        $waaFingerprint     = $this->plugin->helpers->validateFingerprint(self::WAA_CONF_FINGERPRINT, sanitize_text_field($_REQUEST['waa_fingerprint']));
    126         $waaSupressDnt      = $this->plugin->helpers->validateSupressDntFlag(self::WAA_CONF_SUPRESS_DNT, sanitize_text_field($_REQUEST['waa_supress_dnt']));
     126        $waaSuppressDnt      = $this->plugin->helpers->validateSuppressDntFlag(self::WAA_CONF_SUPPRESS_DNT, sanitize_text_field($_REQUEST['waa_suppress_dnt']));
    127127        $waaIncParams       = $this->plugin->helpers->validateIncludeParams(self::WAA_CONF_INC_PARAMS, $_REQUEST);
    128128        $waaExclusionPaths  = $this->plugin->helpers->validateExclusionPathsRequest(self::WAA_CONF_EXC_PATHS, $_REQUEST);
    129129
    130130        include_once( $this->plugin->folder . '/types/WideAngleAttributes.php');
    131         $merged = array($waaSiteId, $waaTrackerDomain, $waaIgnoreHash, $waaIncParams, $waaExclusionPaths, $waaSupressDnt);
     131        $merged = array($waaSiteId, $waaTrackerDomain, $waaIgnoreHash, $waaIncParams, $waaExclusionPaths, $waaSuppressDnt);
    132132        $errors = array();
    133133        foreach($merged as $validated) {
     
    145145            $waaIncParams->get_value(),
    146146            $waaFingerprint->get_value(),
    147             $waaSupressDnt->get_value()
     147            $waaSuppressDnt->get_value()
    148148          );
    149149          update_option(self::WAA_CONF_SITE_ID,         $waaSiteId->get_value());
     
    153153          update_option(self::WAA_CONF_INC_PARAMS,      $waaIncParams->get_value());
    154154          update_option(self::WAA_CONF_FINGERPRINT,     $waaFingerprint->get_value());
    155           update_option(self::WAA_CONF_SUPRESS_DNT,     $waaSupressDnt->get_value());
     155          update_option(self::WAA_CONF_SUPPRESS_DNT,     $waaSuppressDnt->get_value());
    156156          update_option(self::WAA_CONF_ATTRIBUTES,      $attributes->generateAttributes());
    157157          $this->message = __('Settings updated', $this->plugin->name);
     
    168168      self::WAA_CONF_IGNORE_HASH              => get_option(self::WAA_CONF_IGNORE_HASH),
    169169      self::WAA_CONF_FINGERPRINT              => get_option(self::WAA_CONF_FINGERPRINT),
    170       self::WAA_CONF_SUPRESS_DNT              => get_option(self::WAA_CONF_SUPRESS_DNT),
     170      self::WAA_CONF_SUPPRESS_DNT              => get_option(self::WAA_CONF_SUPPRESS_DNT),
    171171      self::WAA_CONF_ATTRIBUTES               => get_option(self::WAA_CONF_ATTRIBUTES)
    172172    );
     
    183183   *  - waa_inc_params
    184184   *  - waa_ignore_hash
    185    *  - waa_supress_dnt
     185   *  - waa_suppress_dnt
    186186   *  - waa_header_script
    187187   *  - waa_footer_script
     
    194194    register_setting($this->plugin->name, self::WAA_CONF_IGNORE_HASH, array('default' => 'false'));
    195195    register_setting($this->plugin->name, self::WAA_CONF_FINGERPRINT, array('default' => 'false'));
    196     register_setting($this->plugin->name, self::WAA_CONF_SUPRESS_DNT, array('default' => 'false'));
     196    register_setting($this->plugin->name, self::WAA_CONF_SUPPRESS_DNT, array('default' => 'false'));
    197197    register_setting($this->plugin->name, self::WAA_CONF_ATTRIBUTES, array('type' => 'array'));
    198198  }
Note: See TracChangeset for help on using the changeset viewer.