Plugin Directory

Changeset 3182515


Ignore:
Timestamp:
11/05/2024 04:09:36 PM (13 months ago)
Author:
pakofocus
Message:

fix check nonce

Location:
advanced-coupons-for-woocommerce
Files:
2382 added
3 edited

Legend:

Unmodified
Added
Removed
  • advanced-coupons-for-woocommerce/trunk/README.md

    r3170074 r3182515  
    66Tested up to: 6.6
    77Requires PHP: 7.4
    8 Stable tag: 3.0.6
     8Stable tag: 3.0.7
    99License: GPL-2.0+
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
  • advanced-coupons-for-woocommerce/trunk/advanced-coupons-for-woocommerce.php

    r3170074 r3182515  
    33 * Plugin Name: Advanced Coupons for WooCommerce
    44 * Description: A discount management plugin for WooCommerce, which allows the creation of discounts based on rules such as amount, quantity, type, of products in the cart or even user role and etc...
    5  * Version: 3.0.6
     5 * Version: 3.0.7
    66 * Author: Focus On
    77 * Author URI: https://github.com/Focus-On-Agency
  • advanced-coupons-for-woocommerce/trunk/src/Controllers/DiscountController.php

    r3170074 r3182515  
    1313    {
    1414        // Verify nonce
    15         if (!isset($_POST['wda_coupon_nonce']) || !check_admin_referer('wda_save_coupon', 'wda_coupon_nonce')) {
     15        if (!current_user_can('manage_woocommerce')) {
    1616            wp_die(esc_html__('Security check failed. Please try again.', 'advanced-coupons-for-woocommerce'));
    1717        }
Note: See TracChangeset for help on using the changeset viewer.