diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php
index e05dd77b0a..971ea7e224 100644
--- a/wp-admin/includes/class-wp-list-table.php
+++ b/wp-admin/includes/class-wp-list-table.php
@@ -388,7 +388,18 @@ class WP_List_Table {
$input_id = $input_id . '-search-input';
if ( ! empty( $_REQUEST['orderby'] ) ) {
- echo '';
+ if ( is_array( $_REQUEST['orderby'] ) ) {
+ foreach ( $_REQUEST['orderby'] as $key => $value ) {
+ /*
+ * Orderby can be either an associative array or non-associative array.
+ * In the latter case, this makes sure the key is a string before calling esc_attr().
+ */
+ $key = (string) $key;
+ echo '';
+ }
+ } else {
+ echo '';
+ }
}
if ( ! empty( $_REQUEST['order'] ) ) {
echo '';
diff --git a/wp-includes/version.php b/wp-includes/version.php
index ab4c823506..b843cf6c04 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.6-beta1-58378';
+$wp_version = '6.6-beta1-58379';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.