#9777 closed enhancement (fixed)
Add "delete" button to term pages
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | minor | Version: | 4.8 |
Component: | Taxonomy | Keywords: | good-first-bug has-patch |
Focuses: | ui, administration | Cc: |
Description
Add "delete" button to "edit category" menu so i can delete the category and not only edit it. this is a very useful feature that is missing in this menu.
LOCATION:
Admin -> Posts -> Categories -> Edit Category
URL:
http://www.site.org/wp-admin/categories.php?action=edit&cat_ID=302
Attachments (21)
Change History (88)
#1
in reply to:
↑ description
@
16 years ago
- Milestone changed from 2.9 to 2.8
#4
@
15 years ago
This enhancement is needed at "tag edit menu" too.
- Admin -> Posts -> Tags -> Edit Tag
- Admin -> Posts -> Categories -> Edit Category
#5
@
14 years ago
- Keywords dev-feedback added; Admin Categories Edit delete usability removed
There are quite a lot of places where the "edit" screen doesn't let you delete:
- Admin -> Users
- Admin -> Media
- Admin -> Links
- Admin -> Links -> Link Categories
plus those mentioned above.
Do they all want changing?
#6
@
14 years ago
- Cc ramiy added
Replying to solarissmoke:
For me, as a user, it would be easier to delete category/tag/taxonomy/media/link/user/post/page from the "edit" screen. The "edit" screen shows me all the infoamation about this tag/cat/post and i can decide if i need it or not.
#9
follow-up:
↓ 10
@
14 years ago
- Keywords ui-feedback added; dev-feedback ux-feedback removed
I think it's safe to say that this is a good idea, for all screens mentioned by solarissmoke.
Just need to decide how it should look like.
I'm thinking of a red link, next to the Update button.
#10
in reply to:
↑ 9
@
14 years ago
Replying to scribu:
I think it's safe to say that this is a good idea.
thank you scribu. hope to see this in 3.2.
#12
follow-up:
↓ 13
@
14 years ago
- Keywords needs-patch removed
Actually, all of the mentioned list screens already have the Delete links in 3.2:
- Posts → Categories
- Posts → Tags
- Media → Library
- Links → All Links
- Links → Link Categories
- Users → All Users
Perhaps a separate link on edit screens is no longer needed?
#13
in reply to:
↑ 12
@
14 years ago
Sergey, we are no talking about the "Quick Edit" on
- Posts → Categories
- /wp-admin/edit-tags.php?taxonomy=category
We are talking about the "Category Edit" screen.
- Posts → Categories → SomeCategory
- /wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=11&post_type=post
#14
@
14 years ago
Yeah, I see it. I assumed it was only needed due to lack of the Delete links in Quick Edit in 3.1. Now that we have them, is it still necessary on Edit screens?
#15
@
14 years ago
Yes, it's needed! i dont use the "Quick Edit" and when i want to delete some cat/tag/ct i go to it's edit page to see all the parameters before i delete it. And the current edit page has no "Delete" button and it's frustrating.
#20
follow-up:
↓ 21
@
13 years ago
No need to patch minified .css and .js, they'll quickly become stale.
With #19592, they are now updated automatically when the .dev versions are committed.
#21
in reply to:
↑ 20
@
13 years ago
Replying to SergeyBiryukov:
No need to patch minified .css and .js, they'll quickly become stale.
With #19592, they are now updated automatically when the .dev versions are committed.
Sounds good, I'll fix that up tonight and recreate my patch.
#22
@
12 years ago
- Summary changed from Usability : add delete button to "edit category" menu to Usability : add delete button to "edit category" screen
#26
@
10 years ago
Actually there's a bug in the patch, the URL attempts to get back to the deleted term. Will fix that and resubmit.
@
10 years ago
Properly handling the redirections after deletes by removing the query args of deleted term ID as well as the action, after the wp_delete_term
#27
@
10 years ago
- Summary changed from Usability : add delete button to "edit category" screen to Usability : add delete button to edit-tags.php
This ticket was mentioned in Slack in #core by drew. View the logs.
10 years ago
#30
@
10 years ago
The delete links needs a better place, see term-delete.png. The link shouldn't be that close to the update button.
#31
@
10 years ago
- Tweaked the position so it's not so snug to the button
- Removed the underline to be consistent with other action links in the dashboard
Tested in latest FF, Chrome, Safari on OS X.
#32
@
10 years ago
- Keywords 4.2-early added
- Milestone changed from 4.1 to Future Release
We're in beta now - let's grab this in 4.2. If another committer really wants to own this, it can probably be rescued for 4.1. I don't really like adding an onclick attribute, though.
#33
@
10 years ago
I don't really like adding an onclick attribute, though.
Agreed.
In fact, I hate prompts. Undo links are a much better experience.
Ideally we'd show an undo link in the delete notice instead of a prompting before delete.
#34
@
10 years ago
Then we should look at the action links on the taxonomy list page. This mimics the exact same mechinisim and prompt for deletion.
#35
@
10 years ago
- Milestone changed from Future Release to 4.2
has-patch 4.2-early so moving to 4.2.
This ticket was mentioned in Slack in #core by drew. View the logs.
10 years ago
This ticket was mentioned in Slack in #core by drew. View the logs.
10 years ago
#38
@
10 years ago
- Milestone changed from 4.2 to Future Release
Punting enhancements from 4.2 per the bug scrub. I attached desktop and mobile screenshots to help move the ticket along when 4.3 opens.
#39
@
10 years ago
Submitted a new patch with an updated UI in line with what @johnbillion and @DrewAPicture discussed on Slack.
#40
follow-up:
↓ 41
@
10 years ago
We can also make it two columns screen, like the post edit screen.
On the right sidebar, show the "Publish" metabox with action buttons (Update & Delete) and other term info like the taxonomy name and the post count.
#41
in reply to:
↑ 40
@
10 years ago
@ramily IMO it's not worth going to a two column layout.
Just checked the patch and it still applies cleanly.
#48
@
9 years ago
9777.7 screenshot looks better than 9777.8 screenshot with delete button to the right of the Update button.
The delete button from 9777.7 worked correctly.
This ticket was mentioned in Slack in #design by ocean90. View the logs.
9 years ago
This ticket was mentioned in Slack in #design by hugobaeta. View the logs.
9 years ago
#52
@
8 years ago
- Summary changed from Usability : add delete button to edit-tags.php to Add "delete" button to term pages
#54
@
8 years ago
- Keywords needs-patch added; has-patch removed
- Milestone changed from Future Release to 4.8
- Version 2.7.1 deleted
Thanks for the patch, @cklosows!
This button needs to be wrapped in a current_user_can( 'delete_term', $tag_ID )
check. This will also negate the need for the default category check, which is now handled inside the cap check since #35614.
@
8 years ago
Replace the default category check to using the capability check as it's implicitly checked.
#55
@
8 years ago
Related: #36574 (Redesign term pages)
The "delete" button can be on the sidebar, inside the "Publish" meta box.
#58
@
8 years ago
- Version set to trunk
js file wp_enqueue_script('admin-tags');
not working on my system. I think, it is not registered.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
#63
follow-up:
↓ 64
@
8 years ago
- Resolution set to fixed
- Status changed from assigned to closed
In 40655:
Replying to ramiy: