Changeset 1745413
- Timestamp:
- 10/12/2017 12:23:52 PM (8 years ago)
- Location:
- wooref/trunk
- Files:
-
- 1 added
- 3 edited
-
languages/wooref-it_IT.mo (modified) (previous)
-
languages/wooref-it_IT.po (modified) (3 diffs)
-
readme.txt (added)
-
wooref.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wooref/trunk/languages/wooref-it_IT.po
r1744183 r1745413 9 9 "Content-Type: text/plain; charset=UTF-8\n" 10 10 "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" 12 12 "Last-Translator: Leo Pizzolante <leo@pizzolante.biz>\n" 13 13 "Language-Team: \n" … … 43 43 msgid "Displays the referral in the order summary mail for the administrator" 44 44 msgstr "" 45 "Visualizza il referral nella mail di riepilogo ordine per l'" 46 "amministratore" 45 "Visualizza il referral nella mail di riepilogo ordine per l'amministratore" 47 46 48 47 #: wooref.php:99 … … 52 51 #: wooref.php:102 53 52 msgid "Displays the referral in the order summary mail for the user" 54 msgstr "" 55 "Visualizza il referral nella mail di riepilogo ordine per l'utente" 53 msgstr "Visualizza il referral nella mail di riepilogo ordine per l'utente" 56 54 57 55 #: wooref.php:144 -
wooref/trunk/wooref.php
r1744183 r1745413 3 3 * Plugin Name: WooRef 4 4 * 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 6 6 * Author: Leo Pizzolante 7 7 * Author URI: https://www.pizzolante.biz … … 122 122 123 123 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 } 126 128 } 127 129 }
Note: See TracChangeset
for help on using the changeset viewer.