PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.20
ووسلام – همگام سازی ووکامرس و باسلام v1.10.20
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 1.8.8 1.8.5 1.8.6 All 53 releases
← All changes | includes/Admin/Settings/SettingsPageHandler.php +7 -1 1.10.81.10.20 View file →
@@ -71,9 +71,15 @@
71 71
72 72 // Mark this authorization as started by the current (authenticated) admin
73 73 // so the OAuth callback can reject forged requests. This runs only after
74 74 // the nonce-protected settings POST, so it cannot be triggered cross-site.
75 - OAuthManager::issueOauthState();
75 + if (! OAuthManager::issueOauthState()) {
76 + wp_die(
77 + esc_html__('امکان شروع فرایند دریافت دسترسی وجود ندارد. لطفاً دوباره تلاش کنید.', 'sync-basalam'),
78 + esc_html__('خطای دریافت دسترسی', 'sync-basalam'),
79 + ['response' => 500]
80 + );
81 + }
76 82
77 83 wp_redirect($oauthUrls['url_req_token']); // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect -- Intentional external/user-provided redirect.
78 84 exit();
79 85 }