PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.23
ووسلام – همگام سازی ووکامرس و باسلام v1.10.23
1.10.23 1.10.22 1.10.21 1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 All 56 releases
← All changes | includes/Admin/FinancialManagement/FinancialManagementHistory.php +5 -0 1.10.14 → 1.10.23 View file →
@@ -178,8 +178,13 @@
178 178
179 179 $activePage = isset($_POST['active_page']) ? max(1, absint(wp_unslash($_POST['active_page']))) : 1;
180 180 $historyPage = isset($_POST['history_page']) ? max(1, absint(wp_unslash($_POST['history_page']))) : 1;
181 181 $viewData = self::buildViewData($activePage, $historyPage);
182 + if ((int) ($viewData['historyResult']['status_code'] ?? 0) === 403) {
183 + wp_send_json_error([
184 + 'message' => 'برای دریافت صحیح اطلاعات، مجدداً احراز هویت را انجام دهید.',
185 + ], 403);
186 + }
182 187 $currentPage = max(1, (int) ($viewData['historyData']['current_page'] ?? $historyPage));
183 188
184 189 wp_send_json_success([
185 190 'html' => self::render($viewData),