Changeset 3273728
- Timestamp:
- 04/15/2025 03:43:26 PM (10 months ago)
- File:
-
- 1 edited
-
web-stat/trunk/Web-Stat.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
web-stat/trunk/Web-Stat.php
r3272829 r3273728 127 127 if (!$this->has_json) { 128 128 // 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'); 132 130 } 133 131 if (!isset($_POST['nonce']) || !wp_verify_nonce($_POST['nonce'], 'wts_ajax_nonce')) {
Note: See TracChangeset
for help on using the changeset viewer.