mirror of
https://gh.wpcy.net/https://github.com/aspirepress/aspireupdate.git
synced 2026-07-18 09:59:31 +08:00
* Admin_Settings: Add new option and constant for skipping API rewriting. * Tests: Add tests for potentially skipping API rewriting. * E2E: Add tests for the "skip_rewriting_on_existing_response" field. * API_Rewrite: Return existing responses when skipping API rewriting is enabled. * Tests: Fix incorrect default value for `$response` in `pre_http_request` calls. * README: Add `AP_COMPATIBILITY`. * API_Rewrite: Change filter priority to `PHP_INT_MAX`. This ensures that the callback is running as late as possible in order to detect responses that may have already been filtered by other plugins.
14 lines
713 B
TypeScript
14 lines
713 B
TypeScript
|
|
export const fieldWrapperSelector = '.aspireupdate-settings-field-wrapper-';
|
|
export const fieldSelector = '#aspireupdate-settings-field-';
|
|
export const enable = 'enable';
|
|
export const api_host = 'api_host';
|
|
export const api_host_other = 'api_host_other';
|
|
export const api_key = 'api_key';
|
|
export const compatibility = 'compatibility';
|
|
export const skip_rewriting_on_existing_response = 'compatibility-skip_rewriting_on_existing_response';
|
|
export const enable_debug = 'enable_debug';
|
|
export const debug_request = 'enable_debug_type-request';
|
|
export const debug_response = 'enable_debug_type-response';
|
|
export const debug_string = 'enable_debug_type-string';
|
|
export const disable_ssl = 'disable_ssl_verification';
|