Plugin Directory

Changeset 1777722


Ignore:
Timestamp:
11/29/2017 02:10:37 PM (8 years ago)
Author:
devdatadome
Message:

release 2.2

Location:
datadome
Files:
21 added
2 edited

Legend:

Unmodified
Added
Removed
  • datadome/trunk/datadome.php

    r1726022 r1777722  
    44* Plugin URI: https://datadome.co
    55* Description: DataDome plugin for Wordpress allows you to monitor for free your website traffic quality. 1 / Follow the evolution of traffic generated by the different types of traffic: Human, Good Bots, Bad Bots, Monetizable Bots. 2 / Observe and understand massive attacks against your website.
    6 * Version: 2.1
     6* Version: 2.2
    77* Author: DataDome
    88* Author URI: https://datadome.co
     
    3131define("DATADOME_PLUGIN_NAME__", "DataDome");
    3232define("DATADOME_PLUGIN_SLUG__", "__data_dome_");
    33 define("DATADOME_PLUGIN_VERSION__", "2.1");
     33define("DATADOME_PLUGIN_VERSION__", "2.2");
    3434define("DATADOME_DIR__", trailingslashit(plugin_dir_path(__FILE__)));
    3535define("DATADOME_LOG_FILE__", DATADOME_DIR__ . "tmp/log.log");
     
    291291            $this->dataDomeResult["error"] != 500 &&
    292292            !empty($this->dataDomeResult["headers"]) && array_key_exists("X-DataDome-headers", $this->dataDomeResult["headers"])) {
    293             $headerNames        = $this->dataDomeResult["headers"]["X-DataDome-headers"];
     293
     294            $headerNames = $this->dataDomeResult["headers"]["X-DataDome-headers"];
    294295            if (!empty($headerNames)) {
    295                 $headers        = explode(" ", $headerNames);
     296                $headers = explode(" ", $headerNames);
    296297                foreach ($headers as $key) {
    297                     if (!isset($this->dataDomeResult["headers"][$key])) continue;
    298 
    299                     $val        = $this->dataDomeResult["headers"][$key];
     298                    if (!isset($this->dataDomeResult["headers"][$key])) {
     299                        continue;
     300                    }
     301
     302                    $val = $this->dataDomeResult["headers"][$key];
    300303                    DataDome_Util::writeDebug("data_dome_send_headers setting $key: $val");
    301304                    header("$key: $val");
  • datadome/trunk/readme.txt

    r1726022 r1777722  
    9999== Changelog ==
    100100
     101= 2.2 =
     102Release date: November 13th, 2017
     103* support Wordpress 4.9
     104
    101105= 2.1 =
    102 Release date: September 5th
     106Release date: September 5th, 2017
    103107* update the DataDome JS tag with 2.0 version (long term version)
    104108* add request method to analyzed data
Note: See TracChangeset for help on using the changeset viewer.