Plugin Directory

Changeset 3214934


Ignore:
Timestamp:
12/30/2024 03:40:48 PM (13 months ago)
Author:
datafeedr.com
Message:

Update to version 1.0.36 from GitHub

Location:
woocommerce-cloak-affiliate-links
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-cloak-affiliate-links/tags/1.0.36/readme.txt

    r3113243 r3214934  
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
    88Requires at least: 4.7.0
    9 Tested up to: 6.6-RC2
    10 Stable tag: 1.0.35
     9Tested up to: 6.7
     10Stable tag: 1.0.36
    1111
    1212Cloak your WooCommerce external & affiliate links.
     
    4646
    4747== Changelog ==
     48
     49= 1.0.36 - 2024/12/30 =
     50* Fixed CSRF issue
    4851
    4952= 1.0.35 - 2024/07/05 =
  • woocommerce-cloak-affiliate-links/tags/1.0.36/woocommerce-cloak-affiliate-links.php

    r3113243 r3214934  
    88License: GPL v3
    99Requires at least: 4.7.0
    10 Tested up to: 6.6-RC2
    11 Version: 1.0.35
     10Tested up to: 6.7
     11Version: 1.0.36
    1212
    1313WC requires at least: 3.0
     
    1515
    1616WooCommerce Cloak Affiliate Links plugin
    17 Copyright (C) 2024, Datafeedr - [email protected]
     17Copyright (C) 2025, Datafeedr - [email protected]
    1818
    1919This program is free software: you can redistribute it and/or modify
     
    3838 * Define constants.
    3939 */
    40 define( 'WCCAL_VERSION', '1.0.35' );
     40define( 'WCCAL_VERSION', '1.0.36' );
    4141define( 'WCCAL_URL', plugin_dir_url( __FILE__ ) );
    4242define( 'WCCAL_PATH', plugin_dir_path( __FILE__ ) );
     
    395395         */
    396396        function permalink_settings_save() {
     397
    397398            if ( ! is_admin() || ! current_user_can( 'manage_options' ) ) {
    398399                return;
    399400            }
     401
    400402            if ( isset( $_POST['wccal_affiliate_base'] ) ) {
     403
     404                check_admin_referer( 'update-permalink' );
     405
    401406                $wccal_affiliate_base = wc_clean( $_POST['wccal_affiliate_base'] );
    402407                $permalinks           = get_option( 'wccal_permalinks' );
     408
    403409                if ( ! $permalinks ) {
    404410                    $permalinks = array();
    405411                }
     412
    406413                $permalinks['affiliate_base'] = untrailingslashit( $wccal_affiliate_base );
     414
    407415                update_option( 'wccal_permalinks', $permalinks );
    408416            }
  • woocommerce-cloak-affiliate-links/trunk/readme.txt

    r3113243 r3214934  
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
    88Requires at least: 4.7.0
    9 Tested up to: 6.6-RC2
    10 Stable tag: 1.0.35
     9Tested up to: 6.7
     10Stable tag: 1.0.36
    1111
    1212Cloak your WooCommerce external & affiliate links.
     
    4646
    4747== Changelog ==
     48
     49= 1.0.36 - 2024/12/30 =
     50* Fixed CSRF issue
    4851
    4952= 1.0.35 - 2024/07/05 =
  • woocommerce-cloak-affiliate-links/trunk/woocommerce-cloak-affiliate-links.php

    r3113243 r3214934  
    88License: GPL v3
    99Requires at least: 4.7.0
    10 Tested up to: 6.6-RC2
    11 Version: 1.0.35
     10Tested up to: 6.7
     11Version: 1.0.36
    1212
    1313WC requires at least: 3.0
     
    1515
    1616WooCommerce Cloak Affiliate Links plugin
    17 Copyright (C) 2024, Datafeedr - [email protected]
     17Copyright (C) 2025, Datafeedr - [email protected]
    1818
    1919This program is free software: you can redistribute it and/or modify
     
    3838 * Define constants.
    3939 */
    40 define( 'WCCAL_VERSION', '1.0.35' );
     40define( 'WCCAL_VERSION', '1.0.36' );
    4141define( 'WCCAL_URL', plugin_dir_url( __FILE__ ) );
    4242define( 'WCCAL_PATH', plugin_dir_path( __FILE__ ) );
     
    395395         */
    396396        function permalink_settings_save() {
     397
    397398            if ( ! is_admin() || ! current_user_can( 'manage_options' ) ) {
    398399                return;
    399400            }
     401
    400402            if ( isset( $_POST['wccal_affiliate_base'] ) ) {
     403
     404                check_admin_referer( 'update-permalink' );
     405
    401406                $wccal_affiliate_base = wc_clean( $_POST['wccal_affiliate_base'] );
    402407                $permalinks           = get_option( 'wccal_permalinks' );
     408
    403409                if ( ! $permalinks ) {
    404410                    $permalinks = array();
    405411                }
     412
    406413                $permalinks['affiliate_base'] = untrailingslashit( $wccal_affiliate_base );
     414
    407415                update_option( 'wccal_permalinks', $permalinks );
    408416            }
Note: See TracChangeset for help on using the changeset viewer.