Changeset 2346006
- Timestamp:
- 07/24/2020 10:50:59 AM (6 years ago)
- Location:
- wecantrack
- Files:
-
- 21 added
- 4 edited
-
tags/1.1.2 (added)
-
tags/1.1.2/README.md (added)
-
tags/1.1.2/WecantrackAdmin.php (added)
-
tags/1.1.2/WecantrackApp.php (added)
-
tags/1.1.2/css (added)
-
tags/1.1.2/css/admin.css (added)
-
tags/1.1.2/images (added)
-
tags/1.1.2/images/favicon.png (added)
-
tags/1.1.2/images/favicon2.png (added)
-
tags/1.1.2/images/wct-logo-normal.svg (added)
-
tags/1.1.2/index.php (added)
-
tags/1.1.2/js (added)
-
tags/1.1.2/js/.gitignore (added)
-
tags/1.1.2/js/admin.js (added)
-
tags/1.1.2/license.txt (added)
-
tags/1.1.2/locale (added)
-
tags/1.1.2/readme.txt (added)
-
tags/1.1.2/views (added)
-
tags/1.1.2/views/settings.php (added)
-
tags/1.1.2/wecantrack.php (added)
-
tags/1.1.2/wecantrack.pot (added)
-
trunk/WecantrackApp.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wecantrack.php (modified) (2 diffs)
-
trunk/wecantrack.pot (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wecantrack/trunk/WecantrackApp.php
r2345403 r2346006 142 142 $post_data = array( 143 143 'affiliate_url' => rawurlencode($original_affiliate_url), 144 'clickout_url' => !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : self::get_site_url(),144 'clickout_url' => self::get_clickout_url(), 145 145 '_ga' => !empty($_COOKIE['_ga']) ? sanitize_text_field($_COOKIE['_ga']) : null, 146 146 '_wctrck' => !empty($_COOKIE['_wctrck']) ? sanitize_text_field($_COOKIE['_wctrck']) : null, … … 174 174 175 175 return $original_affiliate_url; 176 } 177 178 /** 179 * Get Clickout URL 180 * 181 * @return string 182 */ 183 private static function get_clickout_url() { 184 if (!empty($_SERVER['HTTP_REFERER'])) { 185 if (preg_match("~^https?:\/\/[^.]+\.(?:facebook|youtube)\.com~i", $_SERVER['HTTP_REFERER'])) { 186 return self::get_site_url(); 187 } else { 188 return $_SERVER['HTTP_REFERER']; 189 } 190 } else { 191 return self::get_site_url(); 192 } 176 193 } 177 194 -
wecantrack/trunk/readme.txt
r2345403 r2346006 5 5 Tested up to: 5.4 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 61 61 == Changelog == 62 62 63 = 1.1.2 - 23rd July 2020 = 64 * Support facebook and youtube clickout referrers 65 63 66 = 1.1.1 - 15th July 2020 = 64 67 * Integrated redirect_through WCT option into the plugin 65 * Disable www.ezoic.com68 * Disable Ezoic for WCT script 66 69 * Load WCT script faster 67 70 -
wecantrack/trunk/wecantrack.php
r2344893 r2346006 7 7 Plugin URI: https://wecantrack.com/wordpress 8 8 Description: Integrate all you affiliate sales in Google Analytics, Google Ads, Facebook, Data Studio and more! 9 Version: 1.1. 19 Version: 1.1.2 10 10 Author: wecantrack.com 11 11 Author URI: https://wecantrack.com … … 17 17 if(!defined('ABSPATH')) { die('You are not allowed to call this page directly.'); } 18 18 19 define('WECANTRACK_VERSION', '1.1. 1');19 define('WECANTRACK_VERSION', '1.1.2'); 20 20 define('WECANTRACK_PLUGIN_NAME', 'wecantrack'); 21 21 define('WECANTRACK_PATH', WP_PLUGIN_DIR.'/'.WECANTRACK_PLUGIN_NAME); -
wecantrack/trunk/wecantrack.pot
r2344893 r2346006 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WeCanTrack 1.1. 1\n"5 "Project-Id-Version: WeCanTrack 1.1.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wecantrack\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2020-07-2 2T16:55:11+00:00\n"12 "POT-Creation-Date: 2020-07-23T15:02:34+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n"
Note: See TracChangeset
for help on using the changeset viewer.