Changeset 2314056
- Timestamp:
- 05/28/2020 10:23:30 PM (6 years ago)
- Location:
- wecantrack
- Files:
-
- 21 added
- 4 edited
-
tags/1.0.8 (added)
-
tags/1.0.8/README.md (added)
-
tags/1.0.8/WecantrackAdmin.php (added)
-
tags/1.0.8/WecantrackApp.php (added)
-
tags/1.0.8/css (added)
-
tags/1.0.8/css/admin.css (added)
-
tags/1.0.8/images (added)
-
tags/1.0.8/images/favicon.png (added)
-
tags/1.0.8/images/favicon2.png (added)
-
tags/1.0.8/images/wct-logo-normal.svg (added)
-
tags/1.0.8/index.php (added)
-
tags/1.0.8/js (added)
-
tags/1.0.8/js/.gitignore (added)
-
tags/1.0.8/js/admin.js (added)
-
tags/1.0.8/license.txt (added)
-
tags/1.0.8/locale (added)
-
tags/1.0.8/readme.txt (added)
-
tags/1.0.8/views (added)
-
tags/1.0.8/views/settings.php (added)
-
tags/1.0.8/wecantrack.php (added)
-
tags/1.0.8/wecantrack.pot (added)
-
trunk/WecantrackApp.php (modified) (4 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
r2310737 r2314056 117 117 try { 118 118 if (!self::is_affiliate_link($api_key, $original_affiliate_url)) { 119 throw new \Exception('wecantrack: will not process, it is not an affiliate URL'); 119 //wecantrack: will not process URL, it is not an affiliate URL (do not log it) 120 return $original_affiliate_url; 120 121 } 121 122 … … 159 160 * We cache the affiliate url patterns so that we do not have to send every URL to the WeCanTrack API 160 161 * @param $api_key 161 * @param bool $force162 162 * @return bool|mixed|void|null 163 163 */ 164 private static function wecantrack_get_domain_patterns($api_key , $force = false) {164 private static function wecantrack_get_domain_patterns($api_key) { 165 165 try { 166 166 $domain_patterns = unserialize(get_option('wecantrack_domain_patterns')); … … 169 169 $expired = !$wecantrack_fetch_expiration || time() > $wecantrack_fetch_expiration; 170 170 171 if (!$expired || !$force || !isset($domain_patterns['origins'])) { 172 return $domain_patterns; 173 } else { 171 if ($expired || !isset($domain_patterns['origins'])) { 174 172 $response = wp_remote_get("https://app.wecantrack.com/api/v1/domain_patterns?api_key={$api_key}"); 175 173 $status = wp_remote_retrieve_response_code($response); … … 184 182 throw new \Exception('Invalid response'); 185 183 } 186 } 184 } else { 185 return $domain_patterns; 186 } 187 187 188 } catch (\Exception $e) { 188 189 error_log('wecantrack_update_data_fetch() error: ' . $e->getMessage()); -
wecantrack/trunk/readme.txt
r2312147 r2314056 5 5 Tested up to: 5.4 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.0. 77 Stable tag: 1.0.8 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 62 62 == Changelog == 63 63 64 = 1.0.8 - 29th May 2020 = 65 * Optimisations 66 64 67 = 1.0.7 - 26th May 2020 = 65 68 * Fixed admin HTML issue -
wecantrack/trunk/wecantrack.php
r2312147 r2314056 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.0. 79 Version: 1.0.8 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.0. 6');19 define('WECANTRACK_VERSION', '1.0.8'); 20 20 define('WECANTRACK_PLUGIN_NAME', 'wecantrack'); 21 21 define('WECANTRACK_PATH', WP_PLUGIN_DIR.'/'.WECANTRACK_PLUGIN_NAME); -
wecantrack/trunk/wecantrack.pot
r2312147 r2314056 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WeCanTrack 1.0. 7\n"5 "Project-Id-Version: WeCanTrack 1.0.8\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-05-2 5T13:46:46+00:00\n"12 "POT-Creation-Date: 2020-05-28T22:12:23+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.