Plugin Directory

Changeset 3396646


Ignore:
Timestamp:
11/16/2025 04:38:34 PM (5 months ago)
Author:
techspawn1
Message:

Deploy version 1.0.2 from GitLab CI

Location:
reordere-lite-subcriptions-for-woocommerce
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/admin/class-subscription-products-admin.php

    r3260607 r3396646  
    112112
    113113    public function rorder_get_retry_rules() {
     114        // Check user capabilities
     115        if (!current_user_can('manage_options')) {
     116            wp_send_json_error('Unauthorized');
     117        }
     118
    114119        global $wpdb;
    115120
  • reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/includes/class-subscription-products-functions.php

    r3260607 r3396646  
    230230 */
    231231function rorder_handle_subscription_action() {
     232    // Check if user is logged in
     233    if (!is_user_logged_in()) {
     234        wp_send_json_error(array('message' => 'You must be logged in to perform this action.'));
     235        wp_die();
     236    }
     237
    232238    global $wpdb;
    233239    // Sanitize the table name
     
    254260    $order_id = intval(wp_unslash($_POST['order_id']));
    255261    $subscription_date = sanitize_text_field(wp_unslash($_POST['subscription_date']));
     262    $order = wc_get_order($order_id);
     263    if (!$order || intval($order->get_user_id()) !== get_current_user_id()) { wp_send_json_error(array('message' => 'You are not allowed to modify this subscription.')); wp_die(); }
    256264
    257265    // Handle Pause Subscription
     
    307315// Register AJAX actions for logged-in users
    308316add_action('wp_ajax_handle_subscription_action', 'rorder_handle_subscription_action');
    309 
    310 // Register AJAX actions for guests (if applicable, although typically this would be for logged-in users only)
    311 add_action('wp_ajax_nopriv_handle_subscription_action', 'rorder_handle_subscription_action');
  • reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/public/class-subscription-products-public.php

    r3260607 r3396646  
    208208        wp_send_json_error(esc_html__('Invalid input data.', 'reordere-lite-subcriptions-for-woocommerce'));
    209209    }
     210    $order = wc_get_order($order_id);
     211    if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce')); }
    210212
    211213    global $wpdb;
     
    266268        wp_send_json_error(esc_html__('Invalid order ID.', 'reordere-lite-subcriptions-for-woocommerce'));
    267269    }
     270    $order = wc_get_order($order_id);
     271    if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce')); }
    268272
    269273    global $wpdb;
     
    320324 */
    321325function rorder_handle_pause_skip_subscription_actions() {
     326    // Check if user is logged in
     327    if (!is_user_logged_in()) {
     328        wp_send_json_error(array('message' => esc_html__('You must be logged in to perform this action.', 'reordere-lite-subcriptions-for-woocommerce')));
     329        wp_die();
     330    }
     331
    322332    global $wpdb;
    323333    $table_name = $wpdb->prefix . 'subscription_details';
     
    338348    $order_id = intval($_POST['order_id']);
    339349    $subscription_date = sanitize_text_field(wp_unslash($_POST['subscription_date']));
     350    $order = wc_get_order($order_id);
     351    if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(array('message' => esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce'))); wp_die(); }
    340352
    341353    // Handle Pause Subscription
     
    388400
    389401
    390 
    391 
    392 
  • reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/readme.txt

    r3382333 r3396646  
    55Tested up to: 6.7
    66Requires PHP: 7.0
    7 Stable tag: 1.0.1
    87License: GPLv3
    98License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1312== Description ==
    1413
    15 ReordeRe Lite offers users a powerful yet user-friendly solution for integrating subscriptions into your WooCommerce store. If you're looking to implement a WooCommerce subscription model, this plugin provides the essential tools to transform one-time purchases into a steady stream of recurring revenue using **PayPal or Stripe**. It simplifies the entire subscription management process, from product setup to automated billing, helping you foster customer loyalty and grow your business.
     14ReordeRe Lite offers a powerful yet user-friendly solution for integrating subscriptions into your WooCommerce store. If you're looking to implement a WooCommerce subscription model, this plugin provides the essential tools to transform one-time purchases into a steady stream of recurring revenue using **PayPal or Stripe**. It simplifies the entire subscription management process, from product setup to automated billing, helping you foster customer loyalty and grow your business.
    1615> 💡 **Why Choose ReordeRe?** Built for performance and ease of use, ReordeRe Lite delivers robust WooCommerce subscription features without unnecessary complexity. It's designed as a lightweight subscription management system to keep your store running fast while providing a seamless way for customers to subscribe to your products or services. Get started easily with a focused WooCommerce plugin subscription solution.
    1716
  • reordere-lite-subcriptions-for-woocommerce/tags/1.0.2/reordere-lite-subcriptions-for-woocommerce.php

    r3382332 r3396646  
    44Plugin URI:        https://techspawn.com/reorderre-subcriptions-for-woocommerce/
    55Description:       Create subscription products and manage them with ease.
    6 Version:           1.0.1
     6Version:           1.0.2
    77Requires at least: 4.9
    88Tested up to:      6.7
     
    3838}
    3939
    40 // Declare HPOS compatibility
    41 add_action( 'before_woocommerce_init', function() {
    42     if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
    43         \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
    44     }
    45 } );
    4640
    4741// Hook into plugin activation
  • reordere-lite-subcriptions-for-woocommerce/trunk/admin/class-subscription-products-admin.php

    r3260607 r3396646  
    112112
    113113    public function rorder_get_retry_rules() {
     114        // Check user capabilities
     115        if (!current_user_can('manage_options')) {
     116            wp_send_json_error('Unauthorized');
     117        }
     118
    114119        global $wpdb;
    115120
  • reordere-lite-subcriptions-for-woocommerce/trunk/includes/class-subscription-products-functions.php

    r3260607 r3396646  
    230230 */
    231231function rorder_handle_subscription_action() {
     232    // Check if user is logged in
     233    if (!is_user_logged_in()) {
     234        wp_send_json_error(array('message' => 'You must be logged in to perform this action.'));
     235        wp_die();
     236    }
     237
    232238    global $wpdb;
    233239    // Sanitize the table name
     
    254260    $order_id = intval(wp_unslash($_POST['order_id']));
    255261    $subscription_date = sanitize_text_field(wp_unslash($_POST['subscription_date']));
     262    $order = wc_get_order($order_id);
     263    if (!$order || intval($order->get_user_id()) !== get_current_user_id()) { wp_send_json_error(array('message' => 'You are not allowed to modify this subscription.')); wp_die(); }
    256264
    257265    // Handle Pause Subscription
     
    307315// Register AJAX actions for logged-in users
    308316add_action('wp_ajax_handle_subscription_action', 'rorder_handle_subscription_action');
    309 
    310 // Register AJAX actions for guests (if applicable, although typically this would be for logged-in users only)
    311 add_action('wp_ajax_nopriv_handle_subscription_action', 'rorder_handle_subscription_action');
  • reordere-lite-subcriptions-for-woocommerce/trunk/public/class-subscription-products-public.php

    r3260607 r3396646  
    208208        wp_send_json_error(esc_html__('Invalid input data.', 'reordere-lite-subcriptions-for-woocommerce'));
    209209    }
     210    $order = wc_get_order($order_id);
     211    if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce')); }
    210212
    211213    global $wpdb;
     
    266268        wp_send_json_error(esc_html__('Invalid order ID.', 'reordere-lite-subcriptions-for-woocommerce'));
    267269    }
     270    $order = wc_get_order($order_id);
     271    if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce')); }
    268272
    269273    global $wpdb;
     
    320324 */
    321325function rorder_handle_pause_skip_subscription_actions() {
     326    // Check if user is logged in
     327    if (!is_user_logged_in()) {
     328        wp_send_json_error(array('message' => esc_html__('You must be logged in to perform this action.', 'reordere-lite-subcriptions-for-woocommerce')));
     329        wp_die();
     330    }
     331
    322332    global $wpdb;
    323333    $table_name = $wpdb->prefix . 'subscription_details';
     
    338348    $order_id = intval($_POST['order_id']);
    339349    $subscription_date = sanitize_text_field(wp_unslash($_POST['subscription_date']));
     350    $order = wc_get_order($order_id);
     351    if (!$order || (int)$order->get_user_id() !== get_current_user_id()) { wp_send_json_error(array('message' => esc_html__('You are not allowed to modify this subscription.', 'reordere-lite-subcriptions-for-woocommerce'))); wp_die(); }
    340352
    341353    // Handle Pause Subscription
     
    388400
    389401
    390 
    391 
    392 
  • reordere-lite-subcriptions-for-woocommerce/trunk/readme.txt

    r3382333 r3396646  
    55Tested up to: 6.7
    66Requires PHP: 7.0
    7 Stable tag: 1.0.1
    87License: GPLv3
    98License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1312== Description ==
    1413
    15 ReordeRe Lite offers users a powerful yet user-friendly solution for integrating subscriptions into your WooCommerce store. If you're looking to implement a WooCommerce subscription model, this plugin provides the essential tools to transform one-time purchases into a steady stream of recurring revenue using **PayPal or Stripe**. It simplifies the entire subscription management process, from product setup to automated billing, helping you foster customer loyalty and grow your business.
     14ReordeRe Lite offers a powerful yet user-friendly solution for integrating subscriptions into your WooCommerce store. If you're looking to implement a WooCommerce subscription model, this plugin provides the essential tools to transform one-time purchases into a steady stream of recurring revenue using **PayPal or Stripe**. It simplifies the entire subscription management process, from product setup to automated billing, helping you foster customer loyalty and grow your business.
    1615> 💡 **Why Choose ReordeRe?** Built for performance and ease of use, ReordeRe Lite delivers robust WooCommerce subscription features without unnecessary complexity. It's designed as a lightweight subscription management system to keep your store running fast while providing a seamless way for customers to subscribe to your products or services. Get started easily with a focused WooCommerce plugin subscription solution.
    1716
  • reordere-lite-subcriptions-for-woocommerce/trunk/reordere-lite-subcriptions-for-woocommerce.php

    r3382332 r3396646  
    44Plugin URI:        https://techspawn.com/reorderre-subcriptions-for-woocommerce/
    55Description:       Create subscription products and manage them with ease.
    6 Version:           1.0.1
     6Version:           1.0.2
    77Requires at least: 4.9
    88Tested up to:      6.7
     
    3838}
    3939
    40 // Declare HPOS compatibility
    41 add_action( 'before_woocommerce_init', function() {
    42     if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
    43         \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
    44     }
    45 } );
    4640
    4741// Hook into plugin activation
Note: See TracChangeset for help on using the changeset viewer.