Plugin Directory

Changeset 3016770


Ignore:
Timestamp:
01/03/2024 06:12:39 AM (2 years ago)
Author:
supportcandy
Message:

version v3.2.3

Location:
supportcandy
Files:
610 added
9 edited

Legend:

Unmodified
Added
Removed
  • supportcandy/trunk/includes/class-wpsc-current-user.php

    r2971072 r3016770  
    475475                    <?php
    476476                }
     477                do_action( 'wpsc_registration_form' );
    477478                ?>
    478479
     
    571572                'password'      => $password,
    572573            );
     574
     575            $data = apply_filters( 'wpsc_register_user_data', $data );
    573576
    574577            $otp = WPSC_Email_OTP::insert(
     
    672675            );
    673676            wp_new_user_notification( $user_id, null, 'admin' );
     677            do_action( 'wpsc_after_user_registration', $user, $data );
    674678            wp_send_json( array( 'isSuccess' => 1 ) );
    675679        }
  • supportcandy/trunk/includes/custom-field-types/class-wpsc-df-date-closed.php

    r3006599 r3016770  
    295295                    $to   = WPSC_Functions::get_utc_date_str( $val . ' 23:59:59' );
    296296                    $arr  = array(
    297                         't.' . $cf->slug . $compare . '\'' . $from . '\'',
    298                         't.' . $cf->slug . ' BETWEEN \'' . $from . '\' AND \'' . $to . '\'',
     297                        't.' . $cf->slug . $compare . '\'' . esc_sql( $from ) . '\'',
     298                        't.' . $cf->slug . ' BETWEEN \'' . esc_sql( $from ) . '\' AND \'' . esc_sql( $to ) . '\'',
    299299                    );
    300                     $str  = '(' . implode( ' OR ', esc_sql( $arr ) ) . ')';
     300                    $str  = '(' . implode( ' OR ', $arr ) . ')';
    301301                    break;
    302302
     
    305305                    $to   = WPSC_Functions::get_utc_date_str( esc_sql( $val ) . ' 23:59:59' );
    306306                    $arr  = array(
    307                         't.' . $cf->slug . $compare . '\'' . $to . '\'',
    308                         't.' . $cf->slug . ' BETWEEN \'' . $from . '\' AND \'' . $to . '\'',
     307                        't.' . $cf->slug . $compare . '\'' . esc_sql( $to ) . '\'',
     308                        't.' . $cf->slug . ' BETWEEN \'' . esc_sql( $from ) . '\' AND \'' . esc_sql( $to ) . '\'',
    309309                    );
    310                     $str  = '(' . implode( ' OR ', esc_sql( $arr ) ) . ')';
     310                    $str  = '(' . implode( ' OR ', $arr ) . ')';
    311311                    break;
    312312
  • supportcandy/trunk/includes/custom-field-types/class-wpsc-df-date-created.php

    r3006599 r3016770  
    301301                    $to   = WPSC_Functions::get_utc_date_str( $val . ' 23:59:59' );
    302302                    $arr  = array(
    303                         't.' . $cf->slug . $compare . '\'' . $from . '\'',
    304                         't.' . $cf->slug . ' BETWEEN \'' . $from . '\' AND \'' . $to . '\'',
     303                        't.' . $cf->slug . esc_sql( $compare ) . '\'' . esc_sql( $from ) . '\'',
     304                        't.' . $cf->slug . ' BETWEEN \'' . esc_sql( $from ) . '\' AND \'' . esc_sql( $to ) . '\'',
    305305                    );
    306                     $str  = '(' . implode( ' OR ', esc_sql( $arr ) ) . ')';
     306                    $str  = '(' . implode( ' OR ', $arr ) . ')';
    307307                    break;
    308308
     
    311311                    $to   = WPSC_Functions::get_utc_date_str( $val . ' 23:59:59' );
    312312                    $arr  = array(
    313                         't.' . $cf->slug . $compare . '\'' . $to . '\'',
    314                         't.' . $cf->slug . ' BETWEEN \'' . $from . '\' AND \'' . $to . '\'',
     313                        "t.date_created >= '" . esc_sql( $from ) . "'",
     314                        "t.date_created BETWEEN '" . esc_sql( $from ) . "' AND '" . esc_sql( $to ) . "'",
    315315                    );
    316                     $str  = '(' . implode( ' OR ', esc_sql( $arr ) ) . ')';
     316                    $str  = '(' . implode( ' OR ', $arr ) . ')';
    317317                    break;
    318318
  • supportcandy/trunk/includes/custom-field-types/class-wpsc-df-date-updated.php

    r3006599 r3016770  
    301301                    $to   = WPSC_Functions::get_utc_date_str( $val . ' 23:59:59' );
    302302                    $arr  = array(
    303                         't.' . $cf->slug . $compare . '\'' . $from . '\'',
    304                         't.' . $cf->slug . ' BETWEEN \'' . $from . '\' AND \'' . $to . '\'',
     303                        't.' . $cf->slug . esc_sql( $compare ) . '\'' . esc_sql( $from ) . '\'',
     304                        't.' . $cf->slug . ' BETWEEN \'' . esc_sql( $from ) . '\' AND \'' . esc_sql( $to ) . '\'',
    305305                    );
    306                     $str  = '(' . implode( ' OR ', esc_sql( $arr ) ) . ')';
     306                    $str  = '(' . implode( ' OR ', $arr ) . ')';
    307307                    break;
    308308
     
    311311                    $to   = WPSC_Functions::get_utc_date_str( $val . ' 23:59:59' );
    312312                    $arr  = array(
    313                         't.' . $cf->slug . $compare . '\'' . $to . '\'',
    314                         't.' . $cf->slug . ' BETWEEN \'' . $from . '\' AND \'' . $to . '\'',
     313                        't.' . $cf->slug . esc_sql( $compare ) . '\'' . esc_sql( $to ) . '\'',
     314                        't.' . $cf->slug . ' BETWEEN \'' . esc_sql( $from ) . '\' AND \'' . esc_sql( $to ) . '\'',
    315315                    );
    316                     $str  = '(' . implode( ' OR ', esc_sql( $arr ) ) . ')';
     316                    $str  = '(' . implode( ' OR ', $arr ) . ')';
    317317                    break;
    318318
  • supportcandy/trunk/includes/custom-field-types/class-wpsc-df-last-reply-on.php

    r3006599 r3016770  
    289289                    $to   = WPSC_Functions::get_utc_date_str( $val . ' 23:59:59' );
    290290                    $arr  = array(
    291                         't.' . $cf->slug . $compare . '\'' . $from . '\'',
    292                         't.' . $cf->slug . ' BETWEEN \'' . $from . '\' AND \'' . $to . '\'',
     291                        't.' . $cf->slug . $compare . '\'' . esc_sql( $from ) . '\'',
     292                        't.' . $cf->slug . ' BETWEEN \'' . esc_sql( $from ) . '\' AND \'' . esc_sql( $to ) . '\'',
    293293                    );
    294                     $str  = '(' . implode( ' OR ', esc_sql( $arr ) ) . ')';
     294                    $str  = '(' . implode( ' OR ', $arr ) . ')';
    295295                    break;
    296296
     
    299299                    $to   = WPSC_Functions::get_utc_date_str( $val . ' 23:59:59' );
    300300                    $arr  = array(
    301                         't.' . $cf->slug . $compare . '\'' . $to . '\'',
    302                         't.' . $cf->slug . ' BETWEEN \'' . $from . '\' AND \'' . $to . '\'',
     301                        't.' . $cf->slug . $compare . '\'' . esc_sql( $to ) . '\'',
     302                        't.' . $cf->slug . ' BETWEEN \'' . esc_sql( $from ) . '\' AND \'' . esc_sql( $to ) . '\'',
    303303                    );
    304                     $str  = '(' . implode( ' OR ', esc_sql( $arr ) ) . ')';
     304                    $str  = '(' . implode( ' OR ', $arr ) . ')';
    305305                    break;
    306306
  • supportcandy/trunk/includes/custom-field-types/class-wpsc-df-status.php

    r3006599 r3016770  
    383383        public static function set_rest_ticket_data( $data, $request, $custom_fields ) {
    384384
    385             $cf = WPSC_Custom_Field::get_cf_by_slug( 'category' );
     385            $cf = WPSC_Custom_Field::get_cf_by_slug( 'status' );
    386386            $data['status'] = self::get_default_value( $cf );
    387387            return $data;
  • supportcandy/trunk/includes/rest-api/class-wpsc-rest-individual-ticket.php

    r3006599 r3016770  
    457457            $source = $request->get_param( 'source' );
    458458            $attachments = $request->get_param( 'attachments' );
     459
     460            // Set reply profile.
     461            WPSC_Individual_Ticket::$reply_profile = 'agent';
    459462
    460463            if ( ! (
  • supportcandy/trunk/readme.txt

    r3006599 r3016770  
    66Tested up to: 6.4
    77Requires PHP: 7.4
    8 Stable tag: 3.2.2
     8Stable tag: 3.2.3
    99
    1010== Description ==
     
    6060* [Workflows](https://supportcandy.net/downloads/workflows/) - Unlock the power of automation with SupportCandy workflows, revolutionizing the way you manage your processes.
    6161* [LMS Integrations](https://supportcandy.net/downloads/lms-integration/) - Integrates popular LMS plugins for WordPress with your helpdesk.
     62* [Email Marketing Tools Integration](https://supportcandy.net/downloads/email-marketing-tools-integration/) - Elevate customer engagement by effortlessly connecting SupportCandy with leading email marketing tools like MailChimp,GetResponse and Brevo. Subscribe users during registration or ticket creation, and personalize interactions with subscriber tags.
     63* [Webhooks](https://supportcandy.net/downloads/webhooks/) - Webhooks deliver real-time notifications, ensuring you stay informed during critical support events, from new ticket creation to closures and agent assignments.
    6264
    6365= Examples areas of use : =
     
    9092* Polish
    9193* Persian
     94* Dutch (Belgium)
    9295
    9396If you are a translator, you can get free access to all premium add-ons for a year in exchange for translating them into your language if it is not available already. We will renew the Premium subscription next year if you continue contributing to the translation. If interested, don't hesitate to contact us via our [support page](https://supportcandy.net/support-ticket/).
     
    110113
    111114== Changelog ==
     115
     116= 3.2.3 (January 3, 2024) =
     117* New: Email Marketing Tools Integration Add-On (Premium)
     118* New: Webhooks Add-On (Premium)
     119* Fix: Date filter between operator not working
     120* Fix: REST API bug fixes
     121* Translation added for Dutch (Belgium)
    112122
    113123= 3.2.2 (December 7, 2023) =
  • supportcandy/trunk/supportcandy.php

    r3006599 r3016770  
    44 * Plugin URI: https://wordpress.org/plugins/supportcandy/
    55 * Description: Easy & Powerful support ticket system for WordPress
    6  * Version: 3.2.2
     6 * Version: 3.2.3
    77 * Author: SupportCandy
    88 * Author URI: https://supportcandy.net/
     
    3131         * @var string
    3232         */
    33         public static $version = '3.2.2';
     33        public static $version = '3.2.3';
    3434
    3535        /**
Note: See TracChangeset for help on using the changeset viewer.