Plugin Directory

Changeset 3407472


Ignore:
Timestamp:
12/02/2025 03:05:11 AM (7 weeks ago)
Author:
codexpert
Message:

Deploy WC Affiliate version 2.14.1

Location:
wc-affiliate/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wc-affiliate/trunk/assets/js/front.js

    r3375431 r3407472  
    141141        var urlInput = $('input[name="url"]', this).val().trim();
    142142       
    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        }
    149153       
    150154        loader('show');
  • wc-affiliate/trunk/readme.txt

    r3399666 r3407472  
    55Requires at least: 6.0
    66Tested up to: 6.8.3
    7 Stable tag: 2.14
     7Stable tag: 2.14.1
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    192192== Changelog ==
    193193
     194= v2.14.1 - 2025-12-1 =
     195- [imp] Add functionality to allow or disallow external affiliate URL generation.
     196
    194197= v2.14 - 2025-10-13 =
    195198- [fix] fix undefined function issue in affiliate login form.
  • wc-affiliate/trunk/src/Front.php

    r3371054 r3407472  
    7575
    7676        $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
    8688        );
    8789        wp_localize_script( $this->slug, 'WCAFFILIATE', apply_filters( "{$this->slug}-localized", $localized ) );
  • wc-affiliate/trunk/src/Settings.php

    r3392352 r3407472  
    372372                            'desc'  => __( 'Should we show reCAPTCHA in ragistration form?', 'wc-affiliate' ),
    373373                        ),
     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                        ),
    374380                        'wc_affiliate_sitekey_recaptcha' => array(
    375381                            'id'        => 'wc_affiliate_sitekey_recaptcha',
  • wc-affiliate/trunk/vendor/composer/installed.php

    r3399666 r3407472  
    22    'root' => array(
    33        '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',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '__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',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • wc-affiliate/trunk/wc-affiliate.php

    r3399666 r3407472  
    66 * Author: Codexpert
    77 * Author URI: https://codexpert.io/?utm_campaign=author-uri
    8  * Version: 2.14
     8 * Version: 2.14.1
    99 * Text Domain: wc-affiliate
    1010 * Domain Path: /languages
     
    7676        $this->plugin['TextDomain'] = 'wc-affiliate';
    7777        $this->plugin['Name']       = 'WC Affiliate';
    78         $this->plugin['Version']    = '2.12';
     78        $this->plugin['Version']    = '2.14.1';
    7979        $this->plugin['server']     = apply_filters( 'wc-affiliate_server', 'https://my.pluggable.io' );
    8080        $this->plugin['min_php']    = '7.4';
Note: See TracChangeset for help on using the changeset viewer.