Changeset 3323855
- Timestamp:
- 07/07/2025 06:31:51 PM (9 months ago)
- Location:
- wecantrack
- Files:
-
- 30 added
- 7 edited
-
tags/2.0.3 (added)
-
tags/2.0.3/README.md (added)
-
tags/2.0.3/WecantrackAdmin.php (added)
-
tags/2.0.3/WecantrackApp.php (added)
-
tags/2.0.3/WecantrackHelper.php (added)
-
tags/2.0.3/css (added)
-
tags/2.0.3/css/admin.css (added)
-
tags/2.0.3/images (added)
-
tags/2.0.3/images/favicon.png (added)
-
tags/2.0.3/images/favicon2.png (added)
-
tags/2.0.3/images/wct-logo-normal.svg (added)
-
tags/2.0.3/includes (added)
-
tags/2.0.3/includes/WecantrackPermissions.php (added)
-
tags/2.0.3/index.php (added)
-
tags/2.0.3/js (added)
-
tags/2.0.3/js/admin.js (added)
-
tags/2.0.3/js/advanced_settings.js (added)
-
tags/2.0.3/js/redirect_page.js (added)
-
tags/2.0.3/languages (added)
-
tags/2.0.3/languages/wecantrack.pot (added)
-
tags/2.0.3/license.txt (added)
-
tags/2.0.3/locale (added)
-
tags/2.0.3/readme.txt (added)
-
tags/2.0.3/views (added)
-
tags/2.0.3/views/advanced_settings.php (added)
-
tags/2.0.3/views/redirect_page.php (added)
-
tags/2.0.3/views/settings.php (added)
-
tags/2.0.3/views/unauthorized.php (added)
-
tags/2.0.3/wecantrack.php (added)
-
tags/2.0.3/wecantrack.pot (added)
-
trunk/WecantrackAdmin.php (modified) (3 diffs)
-
trunk/WecantrackApp.php (modified) (1 diff)
-
trunk/WecantrackHelper.php (modified) (2 diffs)
-
trunk/js/admin.js (modified) (1 diff)
-
trunk/languages/wecantrack.pot (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wecantrack.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wecantrack/trunk/WecantrackAdmin.php
r3320552 r3323855 41 41 try { 42 42 WecantrackHelper::update_tracking_code($api_key, $domainURL); 43 WecantrackHelper::update_user_website_information($api_key, $domainURL); 43 44 } catch (\Exception $e) { 44 45 error_log('WecantrackAdmin update_tracking_code error: ' . $e->getMessage()); 45 46 } 46 47 47 WecantrackHelper::update_user_website_information($api_key, $domainURL);48 48 update_option('wecantrack_version', WECANTRACK_VERSION); 49 49 } … … 121 121 try { 122 122 WecantrackHelper::update_tracking_code($api_key, $domainURL); 123 WecantrackHelper::update_user_website_information($api_key, $domainURL); 123 124 $data['has_website'] = true; 124 125 } catch (\Exception $e) { … … 126 127 error_log('[WeCanTrack] the_form_response() e_msg:'.$e->getMessage()); 127 128 } 128 129 WecantrackHelper::update_user_website_information($api_key, $domainURL);130 129 131 130 if (sanitize_text_field($userInput['wecantrack_submit_type']) === 'verify') {// store just api key -
wecantrack/trunk/WecantrackApp.php
r3320552 r3323855 88 88 WecantrackHelper::update_tracking_code($api_key, $domainURL); 89 89 $extra['update_tracking_code'] = true; 90 91 WecantrackHelper::update_user_website_information($api_key, $domainURL); 92 WecantrackApp::wecantrack_get_domain_patterns($api_key, true); 90 93 } catch (\Exception $e) { 91 94 $extra['update_tracking_code'] = false; 92 95 } 93 94 WecantrackHelper::update_user_website_information($api_key, $domainURL);95 WecantrackApp::wecantrack_get_domain_patterns($api_key, true);96 96 97 97 $refreshed = 1; -
wecantrack/trunk/WecantrackHelper.php
r3320552 r3323855 59 59 60 60 if ($code === 404) { 61 throw new \ Exception(61 throw new \UnexpectedValueException( 62 62 sprintf( 63 63 // translators: %s is the website URL or identifier. … … 67 67 ); 68 68 } else if ($code !== 200) { 69 throw new \ Exception(69 throw new \RuntimeException( 70 70 sprintf( 71 71 // translators: %s is the full error message or error code from the request. -
wecantrack/trunk/js/admin.js
r3320552 r3323855 103 103 current_key = key; 104 104 check_prerequisites(response); 105 document.querySelector('#wecantrack_ajax_form .submit.hidden')?.classList.remove('hidden'); 105 106 } 106 107 }).catch(() => { 107 108 error_message(params.lang_something_went_wrong); 109 document.querySelector('#wecantrack_ajax_form .submit')?.classList.add('hidden'); 108 110 }).finally(() => { 109 111 busy = 0; -
wecantrack/trunk/languages/wecantrack.pot
r3321766 r3323855 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WeCanTrack 2.0. 2\n"5 "Project-Id-Version: WeCanTrack 2.0.3\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wecantrack\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
wecantrack/trunk/readme.txt
r3321766 r3323855 5 5 Tested up to: 6.7.1 6 6 Requires PHP: 7.4 7 Stable tag: 2.0. 27 Stable tag: 2.0.3 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 58 58 == Changelog == 59 59 60 = 2.0.3 - 7th July 2025 = 61 * Fix critical errors and warnings: added proper error handling and logging for thrown exceptions 62 60 63 = 2.0.2 - 3rd July 2025 = 61 * fix Warning: Undefined array key "disable_ssl"64 * Fix Warning: Undefined array key "disable_ssl" 62 65 63 66 = 2.0.1 - 19th June 2025 = -
wecantrack/trunk/wecantrack.php
r3321766 r3323855 4 4 * Plugin URI: https://wecantrack.com/wordpress 5 5 * Description: Integrate all your affiliate sales into Google Analytics, Google Ads, Facebook, Data Studio, and more! 6 * Version: 2.0. 26 * Version: 2.0.3 7 7 * Author: WeCanTrack 8 8 * Author URI: https://wecantrack.com … … 18 18 if (!defined('ABSPATH')) { die('You are not allowed to call this page directly.'); } 19 19 20 define('WECANTRACK_VERSION', '2.0. 2');20 define('WECANTRACK_VERSION', '2.0.3'); 21 21 define('WECANTRACK_PLUGIN_NAME', 'wecantrack'); 22 22 define('WECANTRACK_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.