wp-chinese-converter/assets/js/wpcc-block-script-ok.js
feibisi b5e9fc686e Add caching, config, and exception handler classes
Introduce WPCC_Conversion_Cache for conversion result caching, WPCC_Config for unified plugin configuration management, and WPCC_Exception_Handler for robust exception handling. Update MediaWiki and OpenCC converters to utilize the new caching layer, improve frontend language switcher accessibility and i18n, and add block compatibility for deprecated block output. Refactor admin class to use modern PHP syntax and improve type safety.
2025-10-05 11:08:40 +08:00

14 lines
472 B
JavaScript
Executable file

var wpc_switcher_use_permalink_type;
if (typeof wpc_switcher_use_permalink !== 'undefined') {
wpc_switcher_use_permalink_type = wpc_switcher_use_permalink['type'];
}
function wpccRedirectToPage($event) {
if (typeof WPCSVariant === 'undefined') return;
return WPCSVariant.wpccRedirectToPage($event);
}
function wpccRedirectToVariant(variantValue) {
if (typeof WPCSVariant === 'undefined') return;
return WPCSVariant.wpccRedirectToVariant(variantValue);
}