Commit e6553476c1 for wordpress.org
commit e6553476c155f79f8e4b705e38fa97d2a0c0ebfa
Author: audrasjb <audrasjb@git.wordpress.org>
Date: Fri Dec 4 08:22:08 2026 +0000
Upgrade/Install: Check the translations "Select All" checkboxes when every update is selected.
This changeset renders both "Select All" checkboxes as checked when every row is checked, and when no translation update has been deferred. It uses the same checked values that already render the rows, so the header and rows can't disagree on load.
Developed in https://github.com/WordPress/wordpress-develop/pull/16478.
Follow-up to [65850], [65226].
Props sukhendu2002, audrasjb.
Fixes #66927.
Built from https://develop.svn.wordpress.org/trunk@65913
git-svn-id: http://core.svn.wordpress.org/trunk@64942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 8e3946dfe5..c2f3831d9d 100644
--- a/wp-admin/update-core.php
+++ b/wp-admin/update-core.php
@@ -824,6 +824,7 @@ function list_translation_updates() {
$form_action = 'update-core.php?action=do-translation-upgrade';
$updates_count = count( $translation_updates );
+ $all_checked = ! in_array( false, wp_list_pluck( $translation_updates, 'checked' ), true );
?>
<h2>
<?php
@@ -842,7 +843,7 @@ function list_translation_updates() {
<table class="widefat updates-table" id="update-translations-table">
<thead>
<tr>
- <td class="manage-column check-column"><input type="checkbox" id="translations-select-all" /></td>
+ <td class="manage-column check-column"><input type="checkbox" id="translations-select-all" <?php checked( $all_checked ); ?> /></td>
<td class="manage-column"><label for="translations-select-all"><?php _e( 'Select All' ); ?></label></td>
</tr>
</thead>
@@ -889,7 +890,7 @@ function list_translation_updates() {
<tfoot>
<tr>
- <td class="manage-column check-column"><input type="checkbox" id="translations-select-all-2" /></td>
+ <td class="manage-column check-column"><input type="checkbox" id="translations-select-all-2" <?php checked( $all_checked ); ?> /></td>
<td class="manage-column"><label for="translations-select-all-2"><?php _e( 'Select All' ); ?></label></td>
</tr>
</tfoot>
diff --git a/wp-includes/version.php b/wp-includes/version.php
index c98d373948..b741170ec0 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.3-alpha-65910';
+$wp_version = '7.3-alpha-65913';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.