wp-chinese-converter/assets/js/search-variant.min.js
feibisi d0c1630979 Add Gutenberg blocks for language switching and cache plugin support
Introduces new Gutenberg blocks: language switcher, conversion status indicator, and no-conversion wrapper, with associated frontend and editor assets. Adds frontend JS/CSS for block rendering and interaction. Extends cache compatibility module to support more plugins (WP Fastest Cache, Autoptimize, Jetpack Boost) and improves cache detection and clearing logic. Updates settings page to display detected cache plugins and their statuses.
2025-09-28 22:21:40 +08:00

1 line
No EOL
429 B
JavaScript

window.addEventListener('load',function(){if(typeof wpcc_target_lang=='undefined')return;var theTextNode=document.querySelector('input[name="s"]');if(theTextNode){var wpcc_input_variant=document.createElement("input");wpcc_input_variant.id='wpcc_input_variant';wpcc_input_variant.type='hidden';wpcc_input_variant.name='variant';wpcc_input_variant.value=wpcc_target_lang;theTextNode.parentNode.appendChild(wpcc_input_variant);}});