Skip to content

Fix URL change detection broken by database search and replace#13135

Open
shervElmi wants to merge 5 commits into
developfrom
bug/12962-encode-connected-proxy-url
Open

Fix URL change detection broken by database search and replace#13135
shervElmi wants to merge 5 commits into
developfrom
bug/12962-encode-connected-proxy-url

Conversation

@shervElmi

@shervElmi shervElmi commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Addresses issue:

Relevant technical choices

  • The sanitize callback encodes as well as set(), so a value written straight to the option, as the options screen writes it, still stores encoded.

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 7.4.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.
  • Ensure there are no unexpected significant changes to file sizes.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

🤖 This comment is automatically updated by CI workflows. Each section is managed independently.

🎭 Playwright reports for 7e1de03:

📦 Build files for 7e1de03:

Store the setting base64-encoded, so a database search and replace
leaves it alone and URL change detection keeps working. The getter
decodes on read, and a value an earlier version stored in plain text
passes through unchanged.
Re-save the connected proxy URL on admin_init, so a value an earlier
version stored in plain text becomes encoded. The migration runs once
and then stamps the DB version option.
Add the migration to the plugin's registration list, so it runs
alongside the earlier migrations.
@shervElmi
shervElmi force-pushed the bug/12962-encode-connected-proxy-url branch from ef75334 to 984a68f Compare July 22, 2026 13:54
@shervElmi
shervElmi marked this pull request as ready for review July 22, 2026 13:55
Rephrase comments to enhance understanding of how legacy values are
stored and processed. This improves code readability and maintainability.
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