Plugin Directory

Changeset 2785156


Ignore:
Timestamp:
09/15/2022 08:29:44 AM (3 years ago)
Author:
firebird75
Message:

update to 1.0.65

Location:
wats
Files:
68 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • wats/trunk/readme.txt

    r2668900 r2785156  
    33Donate link: http://www.ticket-system.net/
    44Tags: support, ticket, helpdesk, ticket system, contact, case, CRM, help, support system, system, support ticket, ticketing system
    5 Requires at least: 4.0
    6 Tested up to: 5.9
    7 Stable tag: 1.0.64
     5Requires at least : 4.0
     6Tested up to: 6.0.2
     7Stable tag: 1.0.65
    88
    99WATS is a ticket system, used by helpdesk staff to deliver support. WATS stands for Wordpress Advanced Ticket System.
     
    159159
    160160== Changelog ==
     161
     162= V1.0.65 (15/09/2022) =
     163+ added Wordpress 5.9 & 6.0 compatibility
    161164
    162165= V1.0.64 (13/08/2021) =
  • wats/trunk/wats-template.php

    r2582445 r2785156  
    464464
    465465    $taxonomies[] =  'category';
    466     if ($wats_settings['tickets_tagging'] == 1)
     466    if (isset($wats_settings['tickets_tagging']) && $wats_settings['tickets_tagging'] == 1)
    467467        $taxonomies[] = 'post_tag';
    468468
     
    722722    if (!current_user_can('administrator'))
    723723    {
    724    
    725         if ($clauses['fields'] !== '*')
     724        if ($clauses['fields'] !== '*' && $clauses['fields'] !== 'COUNT(*)')
    726725            $clauses['fields'] = 'wp1.comment_ID';
    727            
     726        else
     727            $clauses['fields'] = 'COUNT(DISTINCT wp1.comment_ID)';
     728       
     729        $clauses['where'] = str_replace('comment_author_email','wp1.comment_author_email',$clauses['where']);       
    728730        $clauses['where'] = str_replace('comment_approved','wp1.comment_approved',$clauses['where']);
     731        $clauses['where'] = str_replace($wpdb->comments.'.comment_ID','wp1.comment_ID',$clauses['where']);
    729732        $clauses['where'] = str_replace('comment_post_ID','wp1.comment_post_ID',$clauses['where']);
    730733        $clauses['where'] = str_replace($wpdb->posts.'.post_status','wp3.post_status',$clauses['where']);
     734        $clauses['where'] = str_replace($wpdb->comments.'.comment_date_gmt','wp1.comment_date_gmt',$clauses['where']);
    731735        $clauses['where'] = str_replace('AND comment_parent = 0','',$clauses['where']);
    732736
  • wats/trunk/wats.php

    r2582445 r2785156  
    55Description: WATS is a ticket system, used by helpdesk staff to deliver support. WATS stands for Wordpress Advanced Ticket System.
    66Author: Olivier
    7 Version: 1.0.64
     7Version: 1.0.65
    88Author URI: http://www.ticket-system.net/
    99Text Domain: WATS
     
    1313/*
    14141/ Release history :
     15- V1.0.65 (15/09/2022) :
     16+ added Wordpress 5.9 & 6.0 compatibility
    1517- V1.0.64 (13/08/2021) :
    1618+ fixed an interworking issue with Elementor Pro
     
    470472
    471473$wats_settings = array();
    472 $wats_version = '1.0.64';
     474$wats_version = '1.0.65';
    473475$wats_printing_inline_data = false;
    474476$wats_current_post_author = 0;
Note: See TracChangeset for help on using the changeset viewer.