Repository navigation
Upgrade/Install: Remove the translation_updates query arg after the notice shows - #16064
mukeshpanchal27 wants to merge 2 commits into
Conversation
… notice shows. When no translation update is selected, `update-core.php` redirects with `translation_updates=deferred` to show a notice. The arg was not listed in `wp_removable_query_args()`, so it stayed in the URL and the notice showed again on every reload. Follow-up to [99b0144]. See #42281. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change to prevent the deferred-translation notice from reappearing on reload.
No open issues 🎉
What changed in this PR
This PR uses WordPress’s existing admin URL cleanup to remove translation_updates after the deferred-translation notice is displayed, preventing the notice from reappearing on reload.
Changes:
- Adds
translation_updatesto the shared removable query-argument list. - Extends the existing unit test to assert membership and reference Trac ticket #42281.
| File | Description |
|---|---|
tests/phpunit/tests/functions/wpRemovableQueryArgs.php |
Adds a regression assertion and ticket annotation. |
src/wp-includes/functions.php |
Marks translation_updates for URL cleanup. |
Review effort: Balanced
There was a problem hiding this comment.
The notice still appears on the first request. I checked the Updates URL on single-site and network admin: without the patch the canonical URL retained translation_updates=deferred; with the patch it removed that argument and preserved an unrelated one. The new assertion in the existing PHPUnit test failed when I removed the new list entry. Jyria also verified the full single-site browser flow, including reload and a second submission, in Trac comment 40.
AI review · gpt-6
On the Updates screen, untick every translation update and submit.
update-core.phpredirects toupdate-core.php?translation_updates=deferredand shows the "deferred" notice.translation_updatesis not listed inwp_removable_query_args(), so the arg stays in the URL. The notice then shows again every time the page reloads. Other notice args, such asadmin_email_updatedandnetwork_admin_email_updated, are already on that list.This PR adds
translation_updatesto the list and extends the existing test.Testing instructions
?translation_updates=deferred, and the notice shows again after a reload.Tests_Functions_WpRemovableQueryArgspasses.Trac ticket: https://core.trac.wordpress.org/ticket/42281
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Finding the bug while reviewing 7.2 changes, drafting the fix and test. I reviewed the final change.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.
🤖 Generated with Claude Code