From 270f96fea9957be4fb993f95709ba704d3bebe2c Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 20 Apr 2026 03:13:49 +0000 Subject: [PATCH] Users: Add `id="user-{ID}"` to rows on `WP_MS_Users_List_Table`. Brings the network Users list in line with `WP_Users_List_Table::single_row()`, which has always emitted ``. Without a row id, plugin and assistive-tech code that targets specific rows has to fall back to walking from the bulk-action checkbox (`#blog_{ID}`) up via `.closest('tr')`. Additive: existing consumers of the `class` attribute are unaffected. See https://core.trac.wordpress.org/ticket/65102. --- src/wp-admin/includes/class-wp-ms-users-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-ms-users-list-table.php b/src/wp-admin/includes/class-wp-ms-users-list-table.php index b4cbf8457a0b4..cc24dc6dcff3e 100644 --- a/src/wp-admin/includes/class-wp-ms-users-list-table.php +++ b/src/wp-admin/includes/class-wp-ms-users-list-table.php @@ -502,7 +502,7 @@ public function display_rows() { } ?> - + single_row_columns( $user ); ?>