Plugin Directory

Changeset 3380696


Ignore:
Timestamp:
10/19/2025 06:45:04 AM (5 months ago)
Author:
turboaddons
Message:

Plugin Bulk action fixed and security updated

Location:
turbo-shipping-rules-for-woocommerce
Files:
21 added
3 edited

Legend:

Unmodified
Added
Removed
  • turbo-shipping-rules-for-woocommerce/trunk/includes/state-list.php

    r3378848 r3380696  
    1919
    2020    //Added: Nonce verify for bulk actions
    21     if ( ! isset($_POST['_wpnonce']) || ! wp_verify_nonce( sanitize_key($_POST['_wpnonce']), 'tsrfw_bulk_action' ) ) {
     21    if ( empty($_POST['_wpnonce']) ||
     22        ! wp_verify_nonce( sanitize_key($_POST['_wpnonce']), 'bulk-tsrfw_states' ) ) {
    2223        wp_die( esc_html__('Security check failed.', 'turbo-shipping-rules-for-woocommerce') );
    2324    }
  • turbo-shipping-rules-for-woocommerce/trunk/readme.txt

    r3379375 r3380696  
    55Tested up to: 6.8
    66Requires PHP: 7.2
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPL2+
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8181== Changelog ==
    8282
     83= 1.0.1 =
     84* Fixed: Security check error when performing bulk actions (Move to Trash, Delete Permanently, Restore) in the States list table.
     85* Improved: Nonce verification consistency for better security and smoother admin experience.
     86
    8387= 1.0.0 =
    8488* Initial release
  • turbo-shipping-rules-for-woocommerce/trunk/turbo-shipping-rules-for-woocommerce.php

    r3378859 r3380696  
    44 * Plugin URI: https://wp-turbo.com/turbo-shipping-rules-for-woocommerce/
    55 * Description: Easily manage WooCommerce shipping with custom states (inside city, outside city, intercity) and advanced weight-based shipping methods filtered by product categories. Fast, simple, and powerful shipping manager for WooCommerce.
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Requires Plugins: woocommerce
    88 * Author: Turbo Addons
     
    3131});
    3232
     33// ✅ Include SDK
     34require_once __DIR__ . '/wppulse/wppulse-plugin-analytics-engine-sdk.php';
     35
     36// ✅ Fetch plugin data automatically
     37$plugin_data = get_file_data( __FILE__, [
     38    'Name'       => 'Plugin Name',
     39    'Version'    => 'Version',
     40    'TextDomain' => 'Text Domain',
     41] );
     42
     43$plugin_slug = dirname( plugin_basename( __FILE__ ) );
     44
     45// ✅ Initialize SDK if available
     46if ( class_exists( 'WPPulse_SDK' ) ) {
     47    WPPulse_SDK::init( __FILE__, [
     48        'name'     => $plugin_data['Name'],
     49        'slug'     => $plugin_slug,
     50        'version'  => $plugin_data['Version'],
     51        'endpoint' => 'https://wp-turbo.com/wp-json/wppulse/v1/collect',
     52    ] );
     53}
     54
    3355if (!class_exists('TSRFW_Shipping_Rules_For_Woo')) {
    3456    final class TSRFW_Shipping_Rules_For_Woo {
    3557        private static $instance = null;
    36         const TSRFW_VERSION = '1.0.0';
     58        const TSRFW_VERSION = '1.0.1';
    3759        public static function instance() {
    3860            if (self::$instance === null) {
Note: See TracChangeset for help on using the changeset viewer.