From 5f5745cef1278b4f7863fccc47659cec8db0cde0 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Thu, 7 May 2026 18:45:31 +0530 Subject: [PATCH 01/21] 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 15670246e6718d6c44b945f75c45aa22bf635b76 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Thu, 7 May 2026 18:50:52 +0530 Subject: [PATCH 02/21] 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 f750d89fbb46e265a6d160c5d052e0c00e394f66 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Thu, 7 May 2026 18:57:25 +0530 Subject: [PATCH 03/21] 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 e7afdfb56df5151659e89363a95dc1ce1b9e320d Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Tue, 12 May 2026 12:50:37 +0530 Subject: [PATCH 04/21] 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 0c9f461da684bada628b53d86178a911f10ac5fa Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Tue, 12 May 2026 12:50:53 +0530 Subject: [PATCH 05/21] 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 efb7f9fc46783139e6f940ecc30cbd444608321a Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Tue, 12 May 2026 12:51:12 +0530 Subject: [PATCH 06/21] 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 4dd937cf55c6eca8941755ea3cca9e0824adf4f7 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Tue, 12 May 2026 12:51:22 +0530 Subject: [PATCH 07/21] 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 417c11c53ba0f65e428a89cc33c1c3ea97a7a757 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Tue, 12 May 2026 12:51:39 +0530 Subject: [PATCH 08/21] 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 dcdb9729025a22835029e2588532c3069174c0fe Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Tue, 12 May 2026 12:51:55 +0530 Subject: [PATCH 09/21] 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 d75e772b2d36e0f30e3a13a133d798339ec6f48e Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Tue, 12 May 2026 12:52:08 +0530 Subject: [PATCH 10/21] 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 a4918048dd6a23a14d5616bb177d204f1416819a Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Thu, 14 May 2026 18:02:20 +0530 Subject: [PATCH 11/21] 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 913ff81865b3b31b3531159e16dc9c734a5bb69b Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Thu, 14 May 2026 18:03:06 +0530 Subject: [PATCH 12/21] 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 5214519815e057cc35dbaab07b51fdaab597ec83 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Thu, 14 May 2026 18:03:40 +0530 Subject: [PATCH 13/21] 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 1a3e926227f8d771a304a76923567ec268394ae5 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Thu, 14 May 2026 18:04:21 +0530 Subject: [PATCH 14/21] 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 d65b628f4045c9a3f1c92f46107b1052c6b61fb7 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Tue, 19 May 2026 12:25:04 +0530 Subject: [PATCH 15/21] 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 4cd7bc91f49e3e07f1e46c36b0fc15cf66e1af29 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Mon, 15 Jun 2026 18:12:48 +0530 Subject: [PATCH 16/21] 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 34b1f5f174bf9d9ac6d0eecb9bee9565bc80edaa Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Mon, 15 Jun 2026 18:15:53 +0530 Subject: [PATCH 17/21] 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 bc4149323151f1a6204b0d6233c4615623737aaa Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Mon, 15 Jun 2026 18:31:10 +0530 Subject: [PATCH 18/21] 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 80da6f90481580a83c246d34bf0d8eab9fcd73a9 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Mon, 15 Jun 2026 18:44:48 +0530 Subject: [PATCH 19/21] 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 485fb54c522e20cef0ef14ee2125e298dcf258e0 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Mon, 15 Jun 2026 18:50:02 +0530 Subject: [PATCH 20/21] 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 ccdf27b23682308a13f073e35b974df0c4b20246 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Mon, 15 Jun 2026 19:09:48 +0530 Subject: [PATCH 21/21] 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) {