Repository navigation
Upgrade/Install: Count each translation update in the update counts. - #16210
SainathPoojary wants to merge 2 commits into
Conversation
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. |
|
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:
|
|
Would it be worth adding a test case where translation updates are distributed across multiple update transients, such as |
Good point, I agree with this. |
|
This looks good to me. @krupal-panchal I think we can open a new ticket to add this test during the 7.2.x cycle. |
The Updates badge in the admin menu and the admin bar always counted translation updates as "1", even when there were more. Since 7.2, the Updates screen lists each translation update and shows the real number in the heading, for example "Translations (3)", so the badge and the screen no longer match. This changeset ensures each available translation update is taken into account, the same way plugin and theme updates are counted. Developed in #16210. Follow-up to [65226]. Props sainathpoojary, wildworks, krupalpanchal, audrasjb. Fixes #66806. See #42281. git-svn-id: https://develop.svn.wordpress.org/trunk@65850 602fd350-edb4-49c9-b593-d223f7449a82
The Updates badge in the admin menu and the admin bar always counted translation updates as "1", even when there were more. Since 7.2, the Updates screen lists each translation update and shows the real number in the heading, for example "Translations (3)", so the badge and the screen no longer match. This changeset ensures each available translation update is taken into account, the same way plugin and theme updates are counted. Developed in WordPress/wordpress-develop#16210. Follow-up to [65226]. Props sainathpoojary, wildworks, krupalpanchal, audrasjb. Fixes #66806. See #42281. Built from https://develop.svn.wordpress.org/trunk@65850 git-svn-id: http://core.svn.wordpress.org/trunk@64879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The Updates badge in the admin menu and the admin bar always counted translation updates as "1", even when there were more. Since 7.2, the Updates screen lists each translation update and shows the real number in the heading, for example "Translations (3)", so the badge and the screen no longer match. This changeset ensures each available translation update is taken into account, the same way plugin and theme updates are counted. Developed in #16210. Follow-up to [65850]. Reviewed by mamaduka, audrasjb. Merges [65850] to the 7.2 branch. Props sainathpoojary, wildworks, krupalpanchal, audrasjb, sebastienserre, mayankmajeji. Fixes #66806. See #42281. git-svn-id: https://develop.svn.wordpress.org/branches/7.2@65851 602fd350-edb4-49c9-b593-d223f7449a82
The Updates badge in the admin menu and the admin bar always counted translation updates as "1", even when there were more. Since 7.2, the Updates screen lists each translation update and shows the real number in the heading, for example "Translations (3)", so the badge and the screen no longer match. This changeset ensures each available translation update is taken into account, the same way plugin and theme updates are counted. Developed in WordPress/wordpress-develop#16210. Follow-up to [65850]. Reviewed by mamaduka, audrasjb. Merges [65850] to the 7.2 branch. Props sainathpoojary, wildworks, krupalpanchal, audrasjb, sebastienserre, mayankmajeji. Fixes #66806. See #42281. Built from https://develop.svn.wordpress.org/branches/7.2@65851 git-svn-id: http://core.svn.wordpress.org/branches/7.2@64880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The Updates badge in the admin menu and the admin bar always counted translation updates as 1, even when there were more. Since 7.2, the Updates screen lists each translation update and shows the real number in the heading, for example "Translations (3)", so the badge and the screen no longer matched.
This PR counts each available translation update, the same way plugin and theme updates are counted.
The existing test now checks that each translation update is counted.
Trac ticket: https://core.trac.wordpress.org/ticket/66806
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Claude Code helped with the code changes. Review and testing the changes was done by me
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.