Opened 9 years ago
Closed 9 years ago
#35533 closed defect (bug) (fixed)
Widget reorder button in Customizer shows when only one widget
Reported by: | karmatosed | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Customize | Keywords: | has-patch |
Focuses: | javascript | Cc: |
Description (last modified by )
Attachments (2)
Change History (7)
#2
@
9 years ago
- Focuses javascript added
- Keywords good-first-bug added
- Milestone changed from Awaiting Review to 4.5
- Version set to 3.9
#4
@
9 years ago
- Keywords good-first-bug removed
I found an edge case in 35533.diff that wasn't accounted for. The re-ordering controls for widgets don't only handle re-ordering of widgets within a sidebar, but they also provide a link to move a widget to another sidebar. So in 35533.2.diff it only hides the Reorder button if there are no widgets in the sidebar or if there is only one widget and there is only one widget area.
Make sense?
Note: See
TracTickets for help on using
tickets.
This was almost done in #27787 which hid the button if the widget area was empty. So the change here would be to also hide the button if there is ≤1 widget.