Plugin Directory

Changeset 3323855


Ignore:
Timestamp:
07/07/2025 06:31:51 PM (9 months ago)
Author:
wecantrack
Message:

release 2.0.3

Location:
wecantrack
Files:
30 added
7 edited

Legend:

Unmodified
Added
Removed
  • wecantrack/trunk/WecantrackAdmin.php

    r3320552 r3323855  
    4141                try {
    4242                    WecantrackHelper::update_tracking_code($api_key, $domainURL);
     43                    WecantrackHelper::update_user_website_information($api_key, $domainURL);
    4344                } catch (\Exception $e) {
    4445                    error_log('WecantrackAdmin update_tracking_code error: ' . $e->getMessage());
    4546                }
    4647
    47                 WecantrackHelper::update_user_website_information($api_key, $domainURL);
    4848                update_option('wecantrack_version', WECANTRACK_VERSION);
    4949            }
     
    121121        try {
    122122            WecantrackHelper::update_tracking_code($api_key, $domainURL);
     123            WecantrackHelper::update_user_website_information($api_key, $domainURL);
    123124            $data['has_website'] = true;
    124125        } catch (\Exception $e) {
     
    126127            error_log('[WeCanTrack] the_form_response() e_msg:'.$e->getMessage());
    127128        }
    128 
    129         WecantrackHelper::update_user_website_information($api_key, $domainURL);
    130129
    131130        if (sanitize_text_field($userInput['wecantrack_submit_type']) === 'verify') {// store just api key
  • wecantrack/trunk/WecantrackApp.php

    r3320552 r3323855  
    8888                        WecantrackHelper::update_tracking_code($api_key, $domainURL);
    8989                        $extra['update_tracking_code'] = true;
     90
     91                        WecantrackHelper::update_user_website_information($api_key, $domainURL);
     92                        WecantrackApp::wecantrack_get_domain_patterns($api_key, true);
    9093                    } catch (\Exception $e) {
    9194                        $extra['update_tracking_code'] = false;
    9295                    }
    93 
    94                     WecantrackHelper::update_user_website_information($api_key, $domainURL);
    95                     WecantrackApp::wecantrack_get_domain_patterns($api_key, true);
    9696
    9797                    $refreshed = 1;
  • wecantrack/trunk/WecantrackHelper.php

    r3320552 r3323855  
    5959   
    6060        if ($code === 404) {
    61             throw new \Exception(
     61            throw new \UnexpectedValueException(
    6262                sprintf(
    6363                    // translators: %s is the website URL or identifier.
     
    6767            );
    6868        } else if ($code !== 200) {
    69             throw new \Exception(
     69            throw new \RuntimeException(
    7070                sprintf(
    7171                    // translators: %s is the full error message or error code from the request.
  • wecantrack/trunk/js/admin.js

    r3320552 r3323855  
    103103                current_key = key;
    104104                check_prerequisites(response);
     105                document.querySelector('#wecantrack_ajax_form .submit.hidden')?.classList.remove('hidden');
    105106            }
    106107        }).catch(() => {
    107108            error_message(params.lang_something_went_wrong);
     109            document.querySelector('#wecantrack_ajax_form .submit')?.classList.add('hidden');
    108110        }).finally(() => {
    109111            busy = 0;
  • wecantrack/trunk/languages/wecantrack.pot

    r3321766 r3323855  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WeCanTrack 2.0.2\n"
     5"Project-Id-Version: WeCanTrack 2.0.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wecantrack\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  • wecantrack/trunk/readme.txt

    r3321766 r3323855  
    55Tested up to: 6.7.1
    66Requires PHP: 7.4
    7 Stable tag: 2.0.2
     7Stable tag: 2.0.3
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    5858== Changelog ==
    5959
     60= 2.0.3 - 7th July 2025 =
     61 * Fix critical errors and warnings: added proper error handling and logging for thrown exceptions
     62
    6063= 2.0.2 - 3rd July 2025 =
    61  * fix Warning: Undefined array key "disable_ssl"
     64 * Fix Warning: Undefined array key "disable_ssl"
    6265
    6366= 2.0.1 - 19th June 2025 =
  • wecantrack/trunk/wecantrack.php

    r3321766 r3323855  
    44 * Plugin URI:        https://wecantrack.com/wordpress
    55 * Description:       Integrate all your affiliate sales into Google Analytics, Google Ads, Facebook, Data Studio, and more!
    6  * Version:           2.0.2
     6 * Version:           2.0.3
    77 * Author:            WeCanTrack
    88 * Author URI:        https://wecantrack.com
     
    1818if (!defined('ABSPATH')) { die('You are not allowed to call this page directly.'); }
    1919
    20 define('WECANTRACK_VERSION', '2.0.2');
     20define('WECANTRACK_VERSION', '2.0.3');
    2121define('WECANTRACK_PLUGIN_NAME', 'wecantrack');
    2222define('WECANTRACK_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.