Plugin Directory

Changeset 3391816


Ignore:
Timestamp:
11/07/2025 03:29:37 PM (5 months ago)
Author:
elextensions
Message:

Updated to v3.3.1.

Location:
elex-helpdesk-customer-support-ticket-system
Files:
1 deleted
5 edited
23 copied

Legend:

Unmodified
Added
Removed
  • elex-helpdesk-customer-support-ticket-system/tags/3.3.1/assets/js/crm_settings.js

    r3094599 r3391816  
    37673767                            url: ajaxurl,
    37683768                            data: {
    3769                                 action: 'eh_crm_settings_empty_scheduled_actions'
     3769                                action: 'eh_crm_settings_empty_scheduled_actions',
     3770                                nonce: js_obj.nonce,
    37703771                            },
    37713772                            success: function (data) {
  • elex-helpdesk-customer-support-ticket-system/tags/3.3.1/elex-helpdesk-customer-support-ticket-system.php

    r3391342 r3391816  
    44 * Plugin URI: https://elextensions.com/plugin/wsdesk-wordpress-helpdesk-plugin-free-version/
    55 * Description: Enhances your customer service and enables efficient handling of customer issues.
    6  * Version: 3.3.0
     6 * Version: 3.3.1
    77 * Author: ELEXtensions
    88 * Author URI: https://elextensions.com/
  • elex-helpdesk-customer-support-ticket-system/tags/3.3.1/includes/class-crm-ajax-functions-two.php

    r3332203 r3391816  
    15011501
    15021502    public static function eh_crm_settings_empty_scheduled_actions() {
    1503         delete_option( 'wsdesk_scheduled_triggers', '' );
    1504         die( json_encode( array( 'result' => 'success' ) ) );
     1503        if ( wp_verify_nonce( isset( $_POST['nonce'] ) ? sanitize_text_field( $_POST['nonce'] ) : '', 'wsdesk_nonce' ) ) {
     1504
     1505            $current_user = wp_get_current_user();
     1506            $user_roles   = $current_user->roles;
     1507       
     1508            if ( ! in_array( 'administrator', $user_roles, true ) && ! in_array( 'WSDesk_Supervisor', $user_roles, true ) ) {
     1509                wp_send_json_error( array( 'message' => 'Unauthorized User.' ), 403 );
     1510            }
     1511            delete_option( 'wsdesk_scheduled_triggers', '' );
     1512            die( json_encode( array( 'result' => 'success' ) ) );
     1513        }
    15051514    }
    15061515
  • elex-helpdesk-customer-support-ticket-system/tags/3.3.1/readme.txt

    r3391342 r3391816  
    55Tested up to: 6.8
    66Requires PHP: 7.1.8
    7 Stable tag: 3.3.0
     7Stable tag: 3.3.1
    88License: GPLv2 or later
    99URI: https://elextensions.com/plugin/wsdesk-wordpress-helpdesk-plugin-free-version/
     
    121121== Changelog ==
    122122
     123= 3.3.1 =
     124* Code cleanup and Improvement.
     125
    123126= 3.3.0 =
    124127* Code cleanup and Improvement.
     
    204207== Upgrade Notice ==
    205208
     209= 3.3.1 =
     210* Code cleanup and Improvement.
     211
    206212= 3.3.0 =
    207213* Code cleanup and Improvement.
  • elex-helpdesk-customer-support-ticket-system/trunk/assets/js/crm_settings.js

    r3094599 r3391816  
    37673767                            url: ajaxurl,
    37683768                            data: {
    3769                                 action: 'eh_crm_settings_empty_scheduled_actions'
     3769                                action: 'eh_crm_settings_empty_scheduled_actions',
     3770                                nonce: js_obj.nonce,
    37703771                            },
    37713772                            success: function (data) {
  • elex-helpdesk-customer-support-ticket-system/trunk/elex-helpdesk-customer-support-ticket-system.php

    r3391342 r3391816  
    44 * Plugin URI: https://elextensions.com/plugin/wsdesk-wordpress-helpdesk-plugin-free-version/
    55 * Description: Enhances your customer service and enables efficient handling of customer issues.
    6  * Version: 3.3.0
     6 * Version: 3.3.1
    77 * Author: ELEXtensions
    88 * Author URI: https://elextensions.com/
  • elex-helpdesk-customer-support-ticket-system/trunk/includes/class-crm-ajax-functions-two.php

    r3332203 r3391816  
    15011501
    15021502    public static function eh_crm_settings_empty_scheduled_actions() {
    1503         delete_option( 'wsdesk_scheduled_triggers', '' );
    1504         die( json_encode( array( 'result' => 'success' ) ) );
     1503        if ( wp_verify_nonce( isset( $_POST['nonce'] ) ? sanitize_text_field( $_POST['nonce'] ) : '', 'wsdesk_nonce' ) ) {
     1504
     1505            $current_user = wp_get_current_user();
     1506            $user_roles   = $current_user->roles;
     1507       
     1508            if ( ! in_array( 'administrator', $user_roles, true ) && ! in_array( 'WSDesk_Supervisor', $user_roles, true ) ) {
     1509                wp_send_json_error( array( 'message' => 'Unauthorized User.' ), 403 );
     1510            }
     1511            delete_option( 'wsdesk_scheduled_triggers', '' );
     1512            die( json_encode( array( 'result' => 'success' ) ) );
     1513        }
    15051514    }
    15061515
  • elex-helpdesk-customer-support-ticket-system/trunk/readme.txt

    r3391342 r3391816  
    55Tested up to: 6.8
    66Requires PHP: 7.1.8
    7 Stable tag: 3.3.0
     7Stable tag: 3.3.1
    88License: GPLv2 or later
    99URI: https://elextensions.com/plugin/wsdesk-wordpress-helpdesk-plugin-free-version/
     
    121121== Changelog ==
    122122
     123= 3.3.1 =
     124* Code cleanup and Improvement.
     125
    123126= 3.3.0 =
    124127* Code cleanup and Improvement.
     
    204207== Upgrade Notice ==
    205208
     209= 3.3.1 =
     210* Code cleanup and Improvement.
     211
    206212= 3.3.0 =
    207213* Code cleanup and Improvement.
Note: See TracChangeset for help on using the changeset viewer.