| @@ -71,15 +71,9 @@ | ||
| 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 | - if (! OAuthManager::issueOauthState()) { | |
| 76 | - wp_die( | |
| 77 | - esc_html__('امکان شروع فرایند دریافت دسترسی وجود ندارد. لطفاً دوباره تلاش کنید.', 'sync-basalam'), | |
| 78 | - esc_html__('خطای دریافت دسترسی', 'sync-basalam'), | |
| 79 | - ['response' => 500] | |
| 80 | - ); | |
| 81 | - } | |
| 75 | + OAuthManager::issueOauthState(); | |
| 82 | 76 | |
| 83 | 77 | wp_redirect($oauthUrls['url_req_token']); // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect -- Intentional external/user-provided redirect. |
| 84 | 78 | exit(); |
| 85 | 79 | } |