Skip to content

fix(frontend): stop appending plugin version to external Google CSE URL - #50

Merged
acockrell merged 1 commit into
mainfrom
fix/cse-script-minor
Jun 21, 2026
Merged

fix(frontend): stop appending plugin version to external Google CSE URL#50
acockrell merged 1 commit into
mainfrom
fix/cse-script-minor

Conversation

@acockrell

Copy link
Copy Markdown
Collaborator

Summary

  • wp_enqueue_script was passed GPSE_VERSION as the version arg for the Google CSE script, causing WordPress to append &ver=1.2.5 to https://cse.google.com/cse.js?cx=...
  • External scripts manage their own versioning; passing null suppresses the query param

Test plan

  • Inspect page source on the results page — cse.js URL should have no ver= parameter

@acockrell
acockrell merged commit ba2da7a into main Jun 21, 2026
5 checks passed
@acockrell
acockrell deleted the fix/cse-script-minor branch June 21, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant