Skip to content

Commit 6cdf92b

Browse files
committed
Upgrade/Install: Remove the translation_updates query arg after the notice shows.
This changeset adds `translation_updates` to the `wp_removable_query_args()` list, so the arg stays in the URL. The notice then shows again every time the page reloads. Developed in #16064. Follow-up to [65226]. Reviewed by mamaduka, audrasjb. Merges [65846] to the 7.2 branch. Props mukesh27, Jyria, lancewillett. Fixes #42281. git-svn-id: https://develop.svn.wordpress.org/branches/7.2@65848 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1e6f058 commit 6cdf92b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/wp-includes/functions.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,7 @@ function wp_removable_query_args() {
12941294
'skipped',
12951295
'spammed',
12961296
'trashed',
1297+
'translation_updates',
12971298
'unspammed',
12981299
'untrashed',
12991300
'update',

‎tests/phpunit/tests/functions/wpRemovableQueryArgs.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Tests_Functions_WpRemovableQueryArgs extends WP_UnitTestCase {
1414
*
1515
* @ticket 65819
1616
* @ticket 66300
17+
* @ticket 42281
1718
*/
1819
public function test_returns_default_removable_query_args() {
1920
$args = wp_removable_query_args();
@@ -26,6 +27,7 @@ public function test_returns_default_removable_query_args() {
2627
$this->assertContains( 'doing_wp_cron', $args );
2728
$this->assertContains( 'wp-post-new-reload', $args );
2829
$this->assertContains( 'network_admin_email_updated', $args );
30+
$this->assertContains( 'translation_updates', $args );
2931
}
3032

3133
/**

0 commit comments

Comments
 (0)