Replace Select2 with native selects on the records filter screen. - #2009
Open
shadyvb wants to merge 1 commit into
Open
Replace Select2 with native selects on the records filter screen.#2009shadyvb wants to merge 1 commit into
shadyvb wants to merge 1 commit into
Conversation
…ENG-54) The records screen filter bar now uses the native <select> elements the server already renders, with no Select2 initialization: - admin.js: drop the Select2 setup (options + AJAX user-search modes); screen-option visibility now targets the select wrapper instead of the Select2 container DOM. - List_Table::filter_select(): wrap each control in .stream-filter-control, add a screen-reader label, a visible placeholder option, and select IDs. - The user filter lists every user (all users + super-admins + WP-CLI, previous option source); the preload cap returns with the Ajax combobox in a follow-up commit. Sites with many users see a larger <select> until then. - Drop the now-unused user-search nonce field and the admin bundle's select2 dependency (still enqueued via admin-exclude until it migrates). Accessibility: each select is labelled; keyboard operation is native. Other Select2 screens (settings, alert config) are unchanged.
shadyvb
added this pull request to stack #1987
September 10, 2026 13:58
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes XWPENG-54.
The records screen filter bar now uses the native
<select>elements the server already renders, with no Select2 initialization. Each control gets a screen-reader label, a visible placeholder option, and a stable ID; screen-option visibility targets the select wrapper instead of Select2 DOM.The user filter lists every user (all users + super-admins + WP-CLI). Sites with many users see a larger
<select>until the Ajax combobox in #2011. The unused user-search nonce field and the admin bundle's select2 dependency are dropped (still enqueued via admin-exclude until #2010). Other Select2 screens are unchanged.Stacked on #2000.
Test plan