Plugin Directory

Changeset 1745413


Ignore:
Timestamp:
10/12/2017 12:23:52 PM (8 years ago)
Author:
pizzolante
Message:

new version

Location:
wooref/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • wooref/trunk/languages/wooref-it_IT.po

    r1744183 r1745413  
    99"Content-Type: text/plain; charset=UTF-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2017-10-09 13:11+0200\n"
     11"PO-Revision-Date: 2017-10-12 14:16+0200\n"
    1212"Last-Translator: Leo Pizzolante <leo@pizzolante.biz>\n"
    1313"Language-Team: \n"
     
    4343msgid "Displays the referral in the order summary mail for the administrator"
    4444msgstr ""
    45 "Visualizza il referral nella mail di riepilogo ordine per l&apos;"
    46 "amministratore"
     45"Visualizza il referral nella mail di riepilogo ordine per l'amministratore"
    4746
    4847#: wooref.php:99
     
    5251#: wooref.php:102
    5352msgid "Displays the referral in the order summary mail for the user"
    54 msgstr ""
    55 "Visualizza il referral nella mail di riepilogo ordine per l&apos;utente"
     53msgstr "Visualizza il referral nella mail di riepilogo ordine per l'utente"
    5654
    5755#: wooref.php:144
  • wooref/trunk/wooref.php

    r1744183 r1745413  
    33* Plugin Name:       WooRef
    44* Description:       WooRef is a Wordpress plugin that allows you to view and track WooCommerce sales comes from any referral site.
    5 * Version:           1.0
     5* Version:           1.0.1
    66* Author:            Leo Pizzolante
    77* Author URI:        https://www.pizzolante.biz
     
    122122
    123123            if ( ( !is_admin() ) && ( !isset($_COOKIE['wooref']) ) && ( $site_ref != $my_site ) ) {
    124                 $cookie_day_duration = (int) get_option('wooref_cookie_expire');
    125                 setcookie( 'wooref', $site_ref, time()+3600*24*$cookie_day_duration, COOKIEPATH, COOKIE_DOMAIN, false);
     124                if (strpos($_SERVER["HTTP_REFERER"], 'http') !== false) {
     125                    $cookie_day_duration = (int) get_option('wooref_cookie_expire');
     126                    setcookie( 'wooref', $site_ref, time()+3600*24*$cookie_day_duration, COOKIEPATH, COOKIE_DOMAIN, false);
     127                }
    126128            }
    127129        }
Note: See TracChangeset for help on using the changeset viewer.