Changeset 3407472
- Timestamp:
- 12/02/2025 03:05:11 AM (7 weeks ago)
- Location:
- wc-affiliate/trunk
- Files:
-
- 6 edited
-
assets/js/front.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/Front.php (modified) (1 diff)
-
src/Settings.php (modified) (1 diff)
-
vendor/composer/installed.php (modified) (2 diffs)
-
wc-affiliate.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-affiliate/trunk/assets/js/front.js
r3375431 r3407472 141 141 var urlInput = $('input[name="url"]', this).val().trim(); 142 142 143 // Validate if the URL belongs to the current site 144 if (!isUrlFromCurrentSite(urlInput)) { 145 loader('hide'); 146 wf_show_alert('Please enter a URL from your own site.', 'danger'); 147 return false; 148 } 143 // Get external url generation settings value. (on || off) 144 const allowExternalUrlGeneration= WCAFFILIATE.allow_external_url_generation; 145 if (allowExternalUrlGeneration != 'on') { 146 // Validate if the URL belongs to the current site 147 if (!isUrlFromCurrentSite(urlInput)) { 148 loader('hide'); 149 wf_show_alert('Please enter a URL from your own site.', 'danger'); 150 return false; 151 } 152 } 149 153 150 154 loader('show'); -
wc-affiliate/trunk/readme.txt
r3399666 r3407472 5 5 Requires at least: 6.0 6 6 Tested up to: 6.8.3 7 Stable tag: 2.14 7 Stable tag: 2.14.1 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 192 192 == Changelog == 193 193 194 = v2.14.1 - 2025-12-1 = 195 - [imp] Add functionality to allow or disallow external affiliate URL generation. 196 194 197 = v2.14 - 2025-10-13 = 195 198 - [fix] fix undefined function issue in affiliate login form. -
wc-affiliate/trunk/src/Front.php
r3371054 r3407472 75 75 76 76 $localized = array( 77 'nonce' => wp_create_nonce( $this->slug ), 78 'ajaxurl' => admin_url( 'admin-ajax.php' ), 79 'charts' => apply_filters( "{$this->slug}-front_charts", array() ), 80 'token' => Helper::get_token(), 81 'ref_key' => wc_affiliate_get_ref_key(), 82 '_nonce' => wp_create_nonce( $this->slug ), 83 'has_pro' => Helper::has_pro(), 84 'enable_recaptcha' => Helper::get_option( 'wc_affiliate_advanced', 'wc_affiliate_enable_recaptcha' ), 85 'recaptcha_message' => __( 'Please verify you are humann!', 'wc-affiliate' ), 77 'nonce' => wp_create_nonce( $this->slug ), 78 'ajaxurl' => admin_url( 'admin-ajax.php' ), 79 'charts' => apply_filters( "{$this->slug}-front_charts", array() ), 80 'token' => Helper::get_token(), 81 'ref_key' => wc_affiliate_get_ref_key(), 82 '_nonce' => wp_create_nonce( $this->slug ), 83 'has_pro' => Helper::has_pro(), 84 'enable_recaptcha' => Helper::get_option( 'wc_affiliate_advanced', 'wc_affiliate_enable_recaptcha' ), 85 'recaptcha_message' => __( 'Please verify you are humann!', 'wc-affiliate' ), 86 'allow_external_url_generation' => Helper::get_option( 'wc_affiliate_advanced', 'allow_external_url_generation', 'no' ), 87 86 88 ); 87 89 wp_localize_script( $this->slug, 'WCAFFILIATE', apply_filters( "{$this->slug}-localized", $localized ) ); -
wc-affiliate/trunk/src/Settings.php
r3392352 r3407472 372 372 'desc' => __( 'Should we show reCAPTCHA in ragistration form?', 'wc-affiliate' ), 373 373 ), 374 'allow_external_url_generation' => array( 375 'id' => 'allow_external_url_generation', 376 'label' => __( 'Allow External URl Generation', 'wc-affiliate' ), 377 'type' => 'checkbox', 378 'desc' => __( 'Allow external URL generation for visitor tracking.', 'wc-affiliate' ), 379 ), 374 380 'wc_affiliate_sitekey_recaptcha' => array( 375 381 'id' => 'wc_affiliate_sitekey_recaptcha', -
wc-affiliate/trunk/vendor/composer/installed.php
r3399666 r3407472 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => 'v2.14 ',5 'version' => '2.14. 0.0',6 'reference' => ' 8cd4347f8d9ff1987b7cd29e973315de951265d0',4 'pretty_version' => 'v2.14.1', 5 'version' => '2.14.1.0', 6 'reference' => '36336f81c07472f028721532812b3788a9715aba', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => 'v2.14 ',15 'version' => '2.14. 0.0',16 'reference' => ' 8cd4347f8d9ff1987b7cd29e973315de951265d0',14 'pretty_version' => 'v2.14.1', 15 'version' => '2.14.1.0', 16 'reference' => '36336f81c07472f028721532812b3788a9715aba', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
wc-affiliate/trunk/wc-affiliate.php
r3399666 r3407472 6 6 * Author: Codexpert 7 7 * Author URI: https://codexpert.io/?utm_campaign=author-uri 8 * Version: 2.14 8 * Version: 2.14.1 9 9 * Text Domain: wc-affiliate 10 10 * Domain Path: /languages … … 76 76 $this->plugin['TextDomain'] = 'wc-affiliate'; 77 77 $this->plugin['Name'] = 'WC Affiliate'; 78 $this->plugin['Version'] = '2.1 2';78 $this->plugin['Version'] = '2.14.1'; 79 79 $this->plugin['server'] = apply_filters( 'wc-affiliate_server', 'https://my.pluggable.io' ); 80 80 $this->plugin['min_php'] = '7.4';
Note: See TracChangeset
for help on using the changeset viewer.