Opened 8 years ago
Last modified 8 years ago
#44313 new defect (bug)
/wp-admin/css/forms.css problem when adding a <select> with 'restrict_manage_users'
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Users | Keywords: | has-screenshots |
| Focuses: | ui | Cc: |
Description
When current_user_can( 'promote_users' ), WP_Users_List_Table::extra_tablenav() adds a dropdown of roles and a "Change" button. All well and good; see the without_restrict_manage_users_current.png attached screen shot.
If something then hooks into restrict_manage_users and adds another dropdown, the "Change" button is located to the right of that new dropdown rather than still being next to the roles dropdown; see the restrict_manage_users_current.png attached screen shot, and the restrict_manage_users_expected.png screen shot for what I expect to see.
Attachments (3)
Change History (4)
Note: See
TracTickets for help on using
tickets.
The problem is that
/wp-admin/css/forms.csscontains the following CSS rules:Notice that
<select>'s are always floated left but the "Change" button is not.The simplest fix to get something like the
restrict_manage_users_expected.pngscreen shot is to change the CSS rule for.tablenav #changeitto:However, I think a more general solution would be to float *everything* in that
<div>by adding a CSS rule such as:but that may have unintended consequences on other admin screens.