Plugin Directory

Changeset 1036324


Ignore:
Timestamp:
12/01/2014 11:11:48 PM (11 years ago)
Author:
jquindlen
Message:

4.9.21

  • Fixed: Patched an issue where a guest's very first ticket would not post correctly
Location:
wpsc-support-tickets
Files:
114 added
3 edited

Legend:

Unmodified
Added
Removed
  • wpsc-support-tickets/trunk/php/publicajax.php

    r998824 r1036324  
    44    global $wpdb;
    55    // Custom fields
    6     $table_name33 = $wpdb->prefix . "wpstorecart_meta";
     6    $table_name33 = $wpdb->prefix . 'wpstorecart_meta';
    77
    88    $grabrecord = "SELECT * FROM `{$table_name33}` WHERE `type`='wpst-requiredinfo' ORDER BY `foreignkey` ASC;";
     
    1515                $res = $wpdb->get_results("SELECT * FROM `{$table_name33}` WHERE `type`='wpsct_custom_{$field['primkey']}' AND `foreignkey`='{$primkey}';", ARRAY_A);
    1616                if(@isset($res[0]['primkey'])) {
    17                     echo '<tr><td><h4 style="display:inline;">'.$specific_items[0].':</h4> '.strip_tags(base64_decode($res[0]['value'])).'</td></tr>';
     17                    echo '<tr><td><h4 style="display:inline;">',$specific_items[0],':</h4> ',strip_tags(base64_decode($res[0]['value'])),'</td></tr>';
    1818
    1919                }
     
    2626    global $current_user, $wpdb;
    2727   
    28     if (session_id() == "") {@session_start();};
     28    if (session_id() == '') {@session_start();}
    2929
    3030    if((is_user_logged_in() || @isset($_SESSION['wpsct_email'])) && is_numeric($_POST['primkey'])) {
  • wpsc-support-tickets/trunk/readme.txt

    r1035895 r1036324  
    55Requires at least: 3.5.0
    66Tested up to: 4.0
    7 Stable tag: 4.9.20
     7Stable tag: 4.9.21
    88
    99== Description ==
     
    105105* Updated: Added randomized addition to filenames & updated the file upload presentation
    106106
     107= 4.9.21 =
     108* Fixed: Patched an issue where a guest's very first ticket would not post correctly
     109
    107110= 4.9.20 =
    108111* Updated: Several more tiny little performance tweaks to further improve the code
  • wpsc-support-tickets/trunk/wpsc-support-tickets.php

    r1035895 r1036324  
    44  Plugin URI: http://wpscsupporttickets.com/wordpress-support-ticket-plugin/
    55  Description: An open source help desk and support ticket system for Wordpress using jQuery. Easy to use for both users & admins.
    6   Version: 4.9.20
     6  Version: 4.9.21
    77  Author: Jeff Quindlen
    88  Author URI: URI: http://wpscsupporttickets.com/
     
    19061906                            ), $atts));
    19071907
    1908             if (session_id() == "") {
     1908            if (session_id() == '') {
    19091909                @session_start();
    19101910            };
     
    23692369    $direct_to = get_permalink($devOptions['mainpage']);
    23702370
    2371     if (session_id() == "") {@session_start();};
    2372     if(is_user_logged_in() || @isset($_SESSION['wpsct_email'])) {
    2373 
     2371    if (session_id() == '') {@session_start();};
     2372    if(is_user_logged_in() || @isset($_SESSION['wpsct_email']) || @isset($_POST['guest_email']) ) {
     2373
     2374        if(!is_user_logged_in()) {
     2375            if(@trim($_SESSION['wpsct_email'])=='' || @!isset($_SESSION['wpsct_email'])) {
     2376                $_SESSION['wpsct_email'] = $_POST['guest_email'];
     2377            }
     2378        }
     2379       
    23742380        if(is_user_logged_in() && @isset($_POST['admin_created_ticket']) && function_exists('current_user_can') && current_user_can('manage_wpsct_support_tickets') ) {
    23752381            // redirect back to admin
Note: See TracChangeset for help on using the changeset viewer.