From 0a1f9897322919242693c16b3f5bbd7ac2373f7b Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Thu, 7 May 2026 18:45:31 +0530
Subject: [PATCH 01/23] Forms: increase ht to 40px
---
src/wp-admin/css/forms.css | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css
index f2e5f9dcc5b53..8ac4a2c7495e3 100644
--- a/src/wp-admin/css/forms.css
+++ b/src/wp-admin/css/forms.css
@@ -1798,6 +1798,7 @@ table.form-table td .updated p {
p.search-box input[type="search"],
p.search-box input[type="text"] {
min-height: 40px;
+ padding: 0 12px;
}
p.search-box input[type="submit"] {
@@ -1944,6 +1945,7 @@ table.form-table td .updated p {
.options-general-php input[type="text"].small-text {
max-width: 6.25em;
margin: 0;
+ min-height: 40px;
}
/* Privacy Policy settings screen */
From 554b43e462d27450dd966861132a2eb488469e26 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Thu, 7 May 2026 18:50:52 +0530
Subject: [PATCH 02/23] Add plugin: Increase min-height of form and dropdown to
40px
---
src/wp-admin/css/common.css | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
index 63e960b482c00..f48b8048c76e5 100644
--- a/src/wp-admin/css/common.css
+++ b/src/wp-admin/css/common.css
@@ -1417,6 +1417,17 @@ th.action-links {
padding: 0;
width: 50%;
}
+
+ .wp-filter .search-form input[type="search"] {
+ min-height: 40px;
+ padding: 0 12px;
+ }
+
+ .wp-filter .search-form select,
+ .wp-filter .filter-items select {
+ min-height: 40px;
+ padding: 0 24px 0 12px;
+ }
}
@media only screen and (max-width: 320px) {
From cf1393f369cfd2111e6d8d1a1f8749cfd8d98aa7 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Thu, 7 May 2026 18:57:25 +0530
Subject: [PATCH 03/23] Media library: Increase min-ht to 40px
---
src/wp-admin/css/media.css | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css
index 805868a286304..1e69d5b526972 100644
--- a/src/wp-admin/css/media.css
+++ b/src/wp-admin/css/media.css
@@ -1413,6 +1413,21 @@ audio, video {
top: 46px;
right: 10px;
}
+
+ .media-frame.mode-grid .media-toolbar select {
+ min-height: 40px;
+ padding: 0 24px 0 12px;
+ }
+
+ .media-frame.mode-grid .media-toolbar input[type="search"] {
+ min-height: 40px;
+ padding: 0 12px;
+ }
+
+ .media-frame.mode-grid .media-toolbar .button {
+ min-height: 40px;
+ padding: 0 14px;
+ }
}
@media only screen and (max-width: 600px) {
From e51af49941f9847b31af3aba11a6d38d6177a32b Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Tue, 12 May 2026 12:50:37 +0530
Subject: [PATCH 04/23] Enhance select mode toggle button styling by adding
'button-compact' class
---
src/js/media/views/button/select-mode-toggle.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/js/media/views/button/select-mode-toggle.js b/src/js/media/views/button/select-mode-toggle.js
index 2c2335bcd56f6..858c0e16cb2e4 100644
--- a/src/js/media/views/button/select-mode-toggle.js
+++ b/src/js/media/views/button/select-mode-toggle.js
@@ -40,7 +40,7 @@ SelectModeToggle = Button.extend(/** @lends wp.media.view.SelectModeToggle.proto
render: function() {
Button.prototype.render.apply( this, arguments );
- this.$el.addClass( 'select-mode-toggle-button' );
+ this.$el.addClass( 'select-mode-toggle-button button-compact' );
return this;
},
From cd6de2189bd19507f47e8b7a84d470038ae0a8b2 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Tue, 12 May 2026 12:50:53 +0530
Subject: [PATCH 05/23] Increase button font size to improve readability in
action links
---
src/wp-admin/css/list-tables.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css
index 56d88d6801ddb..4943f14a9b874 100644
--- a/src/wp-admin/css/list-tables.css
+++ b/src/wp-admin/css/list-tables.css
@@ -1541,6 +1541,7 @@ div.action-links,
.plugin-action-buttons li .button {
min-height: 32px;
line-height: 2.30769231; /* 30px for 32px min-height */
+ font-size: 13px;
padding: 0 12px;
}
From f0e08fe47adcd5ecbb66862b36a85e203c6a7577 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Tue, 12 May 2026 12:51:12 +0530
Subject: [PATCH 06/23] Remove min-height and padding adjustments for
classnames
---
src/wp-admin/css/media.css | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css
index 1e69d5b526972..831f808f45198 100644
--- a/src/wp-admin/css/media.css
+++ b/src/wp-admin/css/media.css
@@ -1423,11 +1423,6 @@ audio, video {
min-height: 40px;
padding: 0 12px;
}
-
- .media-frame.mode-grid .media-toolbar .button {
- min-height: 40px;
- padding: 0 14px;
- }
}
@media only screen and (max-width: 600px) {
From 65957a6f0f139b26b85da53f58e6e66aae2dee94 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Tue, 12 May 2026 12:51:22 +0530
Subject: [PATCH 07/23] Increase font size of search loading indicator for
better readability
---
src/wp-admin/css/themes.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css
index 4a644974c50c4..be7a034825acf 100644
--- a/src/wp-admin/css/themes.css
+++ b/src/wp-admin/css/themes.css
@@ -121,6 +121,7 @@ body.js .theme-browser.search-loading {
margin-left: 3px;
min-height: 32px;
line-height: 2.30769231; /* 30px for 32px min-height */
+ font-size: 13px;
padding: 0 12px;
}
From 9fe4d016a77bf5d1de79002a692ce1d21e491e98 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Tue, 12 May 2026 12:51:39 +0530
Subject: [PATCH 08/23] Enhance filter button styling by adding
'button-compact' class
---
src/wp-admin/includes/class-wp-media-list-table.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php
index 572dc154de639..0e94646bf4685 100644
--- a/src/wp-admin/includes/class-wp-media-list-table.php
+++ b/src/wp-admin/includes/class-wp-media-list-table.php
@@ -242,7 +242,7 @@ protected function extra_tablenav( $which ) {
/** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
- submit_button( __( 'Filter' ), 'button-compact', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
+ submit_button( __( 'Filter' ), 'button-compact', 'filter_action', false );
if ( $this->is_trash && $this->has_items()
&& current_user_can( 'edit_others_posts' )
From 46356cb6af352fc38705fa60f50292bea079d4f6 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Tue, 12 May 2026 12:51:55 +0530
Subject: [PATCH 09/23] Enhance search button styling by adding
'button-compact' class
---
src/wp-admin/includes/class-wp-media-list-table.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php
index 0e94646bf4685..6af71cce8d463 100644
--- a/src/wp-admin/includes/class-wp-media-list-table.php
+++ b/src/wp-admin/includes/class-wp-media-list-table.php
@@ -351,7 +351,7 @@ public function views() {
?>
-
+
From 841b50abf39f5fa5f2f9b91c9e5b57b73be7bef1 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Tue, 12 May 2026 12:52:08 +0530
Subject: [PATCH 10/23] Remove margin-bottom from button styles for improved
layout consistency
---
src/wp-includes/css/buttons.css | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/wp-includes/css/buttons.css b/src/wp-includes/css/buttons.css
index 09457ce6a4dc5..d864bb9f354ef 100644
--- a/src/wp-includes/css/buttons.css
+++ b/src/wp-includes/css/buttons.css
@@ -404,7 +404,6 @@ TABLE OF CONTENTS:
font-size: 14px;
vertical-align: middle;
min-height: 40px;
- margin-bottom: 4px;
}
/* Responsive Button Icons - Dashicons centering */
From e82e2523aa13ac172f1d0c23f066a364c774147a Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Thu, 14 May 2026 18:02:20 +0530
Subject: [PATCH 11/23] Add button-compact class to empty trash button
---
src/wp-admin/includes/class-wp-media-list-table.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php
index 6af71cce8d463..7c8400344596b 100644
--- a/src/wp-admin/includes/class-wp-media-list-table.php
+++ b/src/wp-admin/includes/class-wp-media-list-table.php
@@ -247,7 +247,7 @@ protected function extra_tablenav( $which ) {
if ( $this->is_trash && $this->has_items()
&& current_user_can( 'edit_others_posts' )
) {
- submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
+ submit_button( __( 'Empty Trash' ), 'apply button-compact', 'delete_all', false );
}
?>
From f18d32e06802c96b1561070f5cb18199e33b3b74 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Thu, 14 May 2026 18:03:06 +0530
Subject: [PATCH 12/23] Restore 4px buttons margin
---
src/wp-includes/css/buttons.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/wp-includes/css/buttons.css b/src/wp-includes/css/buttons.css
index d864bb9f354ef..09457ce6a4dc5 100644
--- a/src/wp-includes/css/buttons.css
+++ b/src/wp-includes/css/buttons.css
@@ -404,6 +404,7 @@ TABLE OF CONTENTS:
font-size: 14px;
vertical-align: middle;
min-height: 40px;
+ margin-bottom: 4px;
}
/* Responsive Button Icons - Dashicons centering */
From 3c727fe9552c4596805ce523043b3eb2e4dd707c Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Thu, 14 May 2026 18:03:40 +0530
Subject: [PATCH 13/23] Remove hardcoded 32px button styles
---
src/wp-admin/css/list-tables.css | 8 --------
src/wp-admin/css/themes.css | 4 ----
2 files changed, 12 deletions(-)
diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css
index 4943f14a9b874..4eaa682127cc0 100644
--- a/src/wp-admin/css/list-tables.css
+++ b/src/wp-admin/css/list-tables.css
@@ -1537,14 +1537,6 @@ div.action-links,
margin: 0; /* Override existing margins */
}
-/* Use compact size for space-constrained plugin cards */
-.plugin-action-buttons li .button {
- min-height: 32px;
- line-height: 2.30769231; /* 30px for 32px min-height */
- font-size: 13px;
- padding: 0 12px;
-}
-
.plugin-card h3 {
margin: 0 12px 16px 0;
font-size: 18px;
diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css
index be7a034825acf..1c7d5928a8210 100644
--- a/src/wp-admin/css/themes.css
+++ b/src/wp-admin/css/themes.css
@@ -119,10 +119,6 @@ body.js .theme-browser.search-loading {
.theme-browser .theme .theme-actions .button {
float: none;
margin-left: 3px;
- min-height: 32px;
- line-height: 2.30769231; /* 30px for 32px min-height */
- font-size: 13px;
- padding: 0 12px;
}
.theme-browser .theme .theme-actions .button.updated-message::before,
From d5e58c62abbf4f7b88614c0f7782787e3a64a5f8 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Thu, 14 May 2026 18:04:21 +0530
Subject: [PATCH 14/23] Add button compact class to plugins and themes button
---
src/wp-admin/includes/plugin-install.php | 16 ++++++------
src/wp-admin/themes.php | 32 ++++++++++++------------
2 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php
index 7607b8823bb99..6b1a615a57ab8 100644
--- a/src/wp-admin/includes/plugin-install.php
+++ b/src/wp-admin/includes/plugin-install.php
@@ -940,7 +940,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
if ( $status['url'] ) {
if ( $compatible_php && $compatible_wp && $all_plugin_dependencies_installed && ! empty( $data->download_link ) ) {
$button = sprintf(
- '%s',
+ '%s',
esc_attr( $data->slug ),
esc_url( $status['url'] ),
/* translators: %s: Plugin name and version. */
@@ -950,7 +950,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
);
} else {
$button = sprintf(
- '',
+ '',
_x( 'Install Now', 'plugin' )
);
}
@@ -961,7 +961,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
if ( $status['url'] ) {
if ( $compatible_php && $compatible_wp ) {
$button = sprintf(
- '%s',
+ '%s',
esc_attr( $status['file'] ),
esc_attr( $data->slug ),
esc_url( $status['url'] ),
@@ -972,7 +972,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
);
} else {
$button = sprintf(
- '',
+ '',
_x( 'Update Now', 'plugin' )
);
}
@@ -983,7 +983,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
case 'newer_installed':
if ( is_plugin_active( $status['file'] ) ) {
$button = sprintf(
- '',
+ '',
_x( 'Active', 'plugin' )
);
} elseif ( current_user_can( 'activate_plugin', $status['file'] ) ) {
@@ -1008,7 +1008,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
}
$button = sprintf(
- '%6$s',
+ '%6$s',
esc_url( $activate_url ),
esc_attr( $name ),
esc_attr( $data->slug ),
@@ -1018,13 +1018,13 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
);
} else {
$button = sprintf(
- '',
+ '',
is_network_admin() ? _x( 'Network Activate', 'plugin' ) : _x( 'Activate', 'plugin' )
);
}
} else {
$button = sprintf(
- '',
+ '',
_x( 'Installed', 'plugin' )
);
}
diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php
index ca9f52b2a164f..226acc94a0a32 100644
--- a/src/wp-admin/themes.php
+++ b/src/wp-admin/themes.php
@@ -609,7 +609,7 @@
/* translators: %s: Theme name. */
$customize_aria_label = sprintf( _x( 'Customize %s', 'theme' ), $theme['name'] );
?>
-
@@ -619,7 +619,7 @@
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -630,7 +630,7 @@
/* translators: %s: Theme name. */
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -640,7 +640,7 @@
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -649,7 +649,7 @@
/* translators: %s: Theme name. */
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -1001,7 +1001,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$customize_aria_label = sprintf( _x( 'Customize %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -1012,7 +1012,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -1021,7 +1021,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -1030,7 +1030,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -1038,7 +1038,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
?>
-
<# } #>
@@ -1251,7 +1251,7 @@ function wp_theme_auto_update_setting_template() {
-
@@ -1263,7 +1263,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -1273,7 +1273,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -1283,7 +1283,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
?>
-
@@ -1292,7 +1292,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' );
?>
-
<# } #>
@@ -1304,7 +1304,7 @@ function wp_theme_auto_update_setting_template() {
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Delete %s', 'theme' ), '{{ data.name }}' );
?>
-
From b5bcd3fcdebc4d79afe7e82bef46389d2d21a0ed Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Tue, 19 May 2026 12:25:04 +0530
Subject: [PATCH 15/23] Add button-compact class to theme activation and
installation buttons
---
src/wp-admin/theme-install.php | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php
index 5723f8e6244cc..26fbe6c0b6b26 100644
--- a/src/wp-admin/theme-install.php
+++ b/src/wp-admin/theme-install.php
@@ -408,21 +408,21 @@
?>
<# if ( data.activate_url ) { #>
<# if ( ! data.active ) { #>
-
+
<# } else { #>
-
+
<# } #>
<# } #>
<# if ( data.customize_url ) { #>
<# if ( ! data.active ) { #>
<# if ( ! data.block_theme ) { #>
-
+
<# } #>
<# } else { #>
-
+
<# } #>
<# } else { #>
-
+
<# } #>
<# } else { #>
<# if ( data.activate_url ) { #>
-
+
<# } #>
<# if ( data.customize_url ) { #>
-
+
<# } else { #>
-
+
<# } #>
<# } #>
<# } else { #>
@@ -444,15 +444,15 @@
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' );
?>
-
-
+
+
<# } else { #>
-
-
+
+
<# } #>
<# } #>
From d6848155f1c914285784f5e7240589ddb8c8c57a Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Mon, 15 Jun 2026 18:12:48 +0530
Subject: [PATCH 16/23] Change specificity of Media library submit button
---
src/wp-admin/css/forms.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css
index 8ac4a2c7495e3..c17d038c5d2c6 100644
--- a/src/wp-admin/css/forms.css
+++ b/src/wp-admin/css/forms.css
@@ -1801,7 +1801,7 @@ table.form-table td .updated p {
padding: 0 12px;
}
- p.search-box input[type="submit"] {
+ p.search-box input[type="submit"].button {
margin-bottom: 10px;
}
From 5f8a6d1fe670d2fd3bcb04f1fe2457ad718de318 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Mon, 15 Jun 2026 18:15:53 +0530
Subject: [PATCH 17/23] Fix theme preview install button
---
src/wp-admin/css/themes.css | 2 ++
src/wp-admin/theme-install.php | 34 +++++++++++++++++-----------------
2 files changed, 19 insertions(+), 17 deletions(-)
diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css
index 1c7d5928a8210..e7eadd7f6941d 100644
--- a/src/wp-admin/css/themes.css
+++ b/src/wp-admin/css/themes.css
@@ -1965,6 +1965,8 @@ body.full-overlay-active {
.theme-install-overlay .wp-full-overlay-header .button {
float: right;
margin: 7px 10px 0 0; /* Vertically center 32px button in 45px header */
+ min-height: 32px;
+ line-height: 2.30769231; /* 30px for 32px height with 13px font */
}
.theme-install-overlay .wp-full-overlay-sidebar {
diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php
index 26fbe6c0b6b26..1137860755c9e 100644
--- a/src/wp-admin/theme-install.php
+++ b/src/wp-admin/theme-install.php
@@ -408,21 +408,21 @@
?>
<# if ( data.activate_url ) { #>
<# if ( ! data.active ) { #>
-
+
<# } else { #>
-
+
<# } #>
<# } #>
<# if ( data.customize_url ) { #>
<# if ( ! data.active ) { #>
<# if ( ! data.block_theme ) { #>
-
+
<# } #>
<# } else { #>
-
+
<# } #>
<# } else { #>
-
+
<# } #>
<# } else { #>
<# if ( data.activate_url ) { #>
-
+
<# } #>
<# if ( data.customize_url ) { #>
-
+
<# } else { #>
-
+
<# } #>
<# } #>
<# } else { #>
@@ -444,15 +444,15 @@
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' );
?>
-
-
+
+
<# } else { #>
-
-
+
+
<# } #>
<# } #>
@@ -487,18 +487,18 @@
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
?>
<# if ( ! data.active ) { #>
-
+
<# } else { #>
-
+
<# } #>
<# } else { #>
-
+
<# } #>
<# } else { #>
<# if ( data.compatible_wp && data.compatible_php ) { #>
-
+
<# } else { #>
-
+
<# } #>
<# } #>
From 2250a6da1f19760854d16b9263c2f2aa701e05e2 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Mon, 15 Jun 2026 18:31:10 +0530
Subject: [PATCH 18/23] Add back `post-query-submit` id
---
src/wp-admin/includes/class-wp-media-list-table.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php
index 7c8400344596b..152ca94c6800d 100644
--- a/src/wp-admin/includes/class-wp-media-list-table.php
+++ b/src/wp-admin/includes/class-wp-media-list-table.php
@@ -242,7 +242,7 @@ protected function extra_tablenav( $which ) {
/** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
- submit_button( __( 'Filter' ), 'button-compact', 'filter_action', false );
+ submit_button( __( 'Filter' ), 'button-compact', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
if ( $this->is_trash && $this->has_items()
&& current_user_can( 'edit_others_posts' )
From fc3c199242a4906afbc8f4f8f32fd1ca9ac4f711 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Mon, 15 Jun 2026 18:44:48 +0530
Subject: [PATCH 19/23] Remove bottom margin from empty trash button
---
src/wp-admin/css/forms.css | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css
index c17d038c5d2c6..9d226c5037e44 100644
--- a/src/wp-admin/css/forms.css
+++ b/src/wp-admin/css/forms.css
@@ -524,6 +524,10 @@ input[type="number"].tiny-text {
margin: 0 8px 0 0;
}
+#delete_all {
+ margin-bottom: 0;
+}
+
/* @since 5.7.0 secondary bulk action controls require JS. */
.no-js label[for="bulk-action-selector-bottom"],
.no-js select#bulk-action-selector-bottom,
From 21f43a25343b1eb06d9f5005e296810726a23018 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Mon, 15 Jun 2026 18:50:02 +0530
Subject: [PATCH 20/23] Shift emprty trash CSS from forms to media.css
---
src/wp-admin/css/forms.css | 4 ----
src/wp-admin/css/media.css | 4 ++++
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css
index 9d226c5037e44..c17d038c5d2c6 100644
--- a/src/wp-admin/css/forms.css
+++ b/src/wp-admin/css/forms.css
@@ -524,10 +524,6 @@ input[type="number"].tiny-text {
margin: 0 8px 0 0;
}
-#delete_all {
- margin-bottom: 0;
-}
-
/* @since 5.7.0 secondary bulk action controls require JS. */
.no-js label[for="bulk-action-selector-bottom"],
.no-js select#bulk-action-selector-bottom,
diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css
index 831f808f45198..8016804cd1020 100644
--- a/src/wp-admin/css/media.css
+++ b/src/wp-admin/css/media.css
@@ -374,6 +374,10 @@
.find-box-inside {
bottom: 57px;
}
+
+ #delete_all {
+ margin-bottom: 0;
+ }
}
@media screen and (max-width: 660px) {
From 343db1982233fba607f24c7d7ee299397c67aac7 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Mon, 15 Jun 2026 19:09:48 +0530
Subject: [PATCH 21/23] Fix search media alignment with filter
---
src/wp-admin/css/media.css | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css
index 8016804cd1020..5a169cfde9e01 100644
--- a/src/wp-admin/css/media.css
+++ b/src/wp-admin/css/media.css
@@ -1400,7 +1400,6 @@ audio, video {
.wp-filter p.search-box {
float: none;
width: 100%;
- margin-bottom: 20px;
display: flex;
flex-wrap: nowrap;
column-gap: 0;
@@ -1427,6 +1426,10 @@ audio, video {
min-height: 40px;
padding: 0 12px;
}
+
+ .wp-filter p.search-box {
+ margin-bottom: 0;
+ }
}
@media only screen and (max-width: 600px) {
From 719f9f548e28ccd9b082cd6366b94a6314f54157 Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Wed, 17 Jun 2026 12:04:54 +0530
Subject: [PATCH 22/23] Restore the .button-compact class that was removed in
34b1f5f
---
src/wp-admin/theme-install.php | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php
index 1137860755c9e..fc24334abff85 100644
--- a/src/wp-admin/theme-install.php
+++ b/src/wp-admin/theme-install.php
@@ -408,21 +408,21 @@
?>
<# if ( data.activate_url ) { #>
<# if ( ! data.active ) { #>
-
+
<# } else { #>
-
+
<# } #>
<# } #>
<# if ( data.customize_url ) { #>
<# if ( ! data.active ) { #>
<# if ( ! data.block_theme ) { #>
-
+
<# } #>
<# } else { #>
-
+
<# } #>
<# } else { #>
-
+
<# } #>
<# } else { #>
<# if ( data.activate_url ) { #>
-
+
<# } #>
<# if ( data.customize_url ) { #>
-
+
<# } else { #>
-
+
<# } #>
<# } #>
<# } else { #>
@@ -444,15 +444,15 @@
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' );
?>
-
-
+
+
<# } else { #>
-
-
+
+
<# } #>
<# } #>
From b6bbf9656da1f05bff3741430d62d36dfad0325d Mon Sep 17 00:00:00 2001
From: Himanshu Pathak
Date: Wed, 17 Jun 2026 12:06:36 +0530
Subject: [PATCH 23/23] Add `button-compact` class to the buttons that are
automatically registered based on the menu
---
src/wp-admin/themes.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php
index 226acc94a0a32..a9f24765ce742 100644
--- a/src/wp-admin/themes.php
+++ b/src/wp-admin/themes.php
@@ -381,18 +381,18 @@
$menu_hook = get_plugin_page_hook( $submenu[ $item[2] ][0][2], $item[2] );
if ( file_exists( WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}" ) || ! empty( $menu_hook ) ) {
- $current_theme_actions[] = "{$item[0]}";
+ $current_theme_actions[] = "{$item[0]}";
} else {
- $current_theme_actions[] = "{$item[0]}";
+ $current_theme_actions[] = "{$item[0]}";
}
} elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) {
$menu_file = $item[2];
if ( current_user_can( 'customize' ) ) {
if ( 'custom-header' === $menu_file ) {
- $current_theme_actions[] = "{$item[0]}";
+ $current_theme_actions[] = "{$item[0]}";
} elseif ( 'custom-background' === $menu_file ) {
- $current_theme_actions[] = "{$item[0]}";
+ $current_theme_actions[] = "{$item[0]}";
}
}
@@ -402,9 +402,9 @@
}
if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) {
- $current_theme_actions[] = "{$item[0]}";
+ $current_theme_actions[] = "{$item[0]}";
} else {
- $current_theme_actions[] = "{$item[0]}";
+ $current_theme_actions[] = "{$item[0]}";
}
}
}