Skip to content

Commit

Permalink
Merge pull request #2 from datafeedr/update-affiliate-base
Browse files Browse the repository at this point in the history
Update permalink save.
  • Loading branch information
growdev authored Mar 18, 2024
2 parents 582da8b + add15af commit 4fef120
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 4.7.0
Tested up to: 6.4.2-alpha
Stable tag: 1.0.33
Tested up to: 6.4.3
Stable tag: 1.0.34

Cloak your WooCommerce external & affiliate links.

Expand Down Expand Up @@ -46,6 +46,9 @@ There's a lot of debate about this. I would suggest Googling this and seeing wh

== Changelog ==

= 1.0.34 - 2024/03/18 =
* Updated permalink saving.

= 1.0.33 - 2023/11/10 =
* Updated "tested up to" value
* Declared WooCommerce HPOS compatibility
Expand Down
12 changes: 6 additions & 6 deletions woocommerce-cloak-affiliate-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
Author URI: http://www.datafeedr.com
License: GPL v3
Requires at least: 4.7.0
Tested up to: 6.4.2-alpha
Version: 1.0.33
Tested up to: 6.4.3
Version: 1.0.34
WC requires at least: 3.0
WC tested up to: 8.2
WC tested up to: 8.6
WooCommerce Cloak Affiliate Links plugin
Copyright (C) 2023, Datafeedr - help@datafeedr.com
Copyright (C) 2024, Datafeedr - help@datafeedr.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -37,7 +37,7 @@
/**
* Define constants.
*/
define( 'WCCAL_VERSION', '1.0.33' );
define( 'WCCAL_VERSION', '1.0.34' );
define( 'WCCAL_URL', plugin_dir_url( __FILE__ ) );
define( 'WCCAL_PATH', plugin_dir_path( __FILE__ ) );
define( 'WCCAL_BASENAME', plugin_basename( __FILE__ ) );
Expand Down Expand Up @@ -394,7 +394,7 @@ function permalink_input() {
* permalink_settings_save function.
*/
function permalink_settings_save() {
if ( ! is_admin() ) {
if ( ! is_admin() || ! current_user_can( 'manage_options' ) ) {
return;
}
if ( isset( $_POST['wccal_affiliate_base'] ) ) {
Expand Down

0 comments on commit 4fef120

Please sign in to comment.