#27575 closed defect (bug) (wontfix)
Widget Customizer: Inconsistent use of Delete / Remove
| Reported by: | jeremyfelt | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | 3.9 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
When using the standard widget administration in wp-admin/widgets.php, each current widget in a sidebar has a 'Delete' and a 'Close' link. If a new widget is added to a sidebar, the same Delete and Close links are used.
When using the widget controls in the customizer, existing widgets appear with Remove and Close links. When a new widget is added through the customizer, it initially appears with a Delete and Close link.
I haven't found any conversation around this in a previous ticket. Sticking with Delete and Close would be a more consistent experience. Patch attached.
Attachments (1)
Change History (10)
#1
@
12 years ago
- Keywords commit added
- Milestone Awaiting Review → 3.9
- Owner set to
- Status new → assigned
#3
@
12 years ago
- Keywords close added; commit removed
I agree with westonruter. Remove is for moving the widget to the Inactive Widgets area.
#5
@
12 years ago
- Keywords close removed
- Milestone 3.9
- Resolution → wontfix
- Status assigned → closed
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
It is all intentional, actually. When a widget is added to a widget area but is not yet saved, then the "Delete" link is present. When the widget gets saved for the first time, it will change to "Remove"; at this point, instead of the widget instance being lost forever, clicking Remove places it in the Inactive Widgets sidebar, which then becomes a sort of widget trash can. If you hover over the link, you'll see a tooltip:
See original discussion on IRC, where we dive into the rationale for this: https://irclogs.wordpress.org/chanlog.php?channel=wordpress-ui&day=2013-10-14&sort=asc#m128535
See also these GitHub issues:
https://github.com/x-team/wp-widget-customizer/issues/22
https://github.com/x-team/wp-widget-customizer/issues/49