Plugin Directory

Changeset 3273728


Ignore:
Timestamp:
04/15/2025 03:43:26 PM (10 months ago)
Author:
webstat
Message:

Version 2.5.4 housekeeping and minor improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • web-stat/trunk/Web-Stat.php

    r3272829 r3273728  
    127127        if (!$this->has_json) {
    128128            // send error back to wts_init_js
    129             header("Content-Type: application/json");
    130             echo '{ "success": false, "data": "JSON not available" }';
    131             wp_die();
     129            wp_send_json_error('JSON not available');
    132130        }
    133131        if (!isset($_POST['nonce']) || !wp_verify_nonce($_POST['nonce'], 'wts_ajax_nonce')) {
Note: See TracChangeset for help on using the changeset viewer.