WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 6 months ago

#21603 new enhancement

Add ability to delete multiple menu items

Reported by: wphound Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.4.1
Component: Menus Keywords: has-patch ui-feedback needs-unit-tests has-screenshots
Focuses: administration Cc:

Description

When working with a menu in the Admin, if you need to delete a lot of entries it's really slow because you have to expand each entry, then click delete, then wait for the refresh to do it all over again. If we had an X next to the down arrow for each menu item, it would be much faster/easier to delete them.

Thanks!

Attachments (4)

21603.diff (3.4 KB) - added by welcher 6 months ago.
Initial Patch
remove menu item button.png (24.4 KB) - added by welcher 6 months ago.
Screenshot of new button
21603.2.diff (4.0 KB) - added by welcher 6 months ago.
Alternate approach using a checkbox and dedicated button
alternate approach 21603.png (158.2 KB) - added by welcher 6 months ago.
Alternate approach using a checkbox and dedicated button

Download all attachments as: .zip

Change History (13)

#1 @DrewAPicture
4 years ago

  • Cc xoodrew@… added
  • Summary changed from Add a delete button to individual menu items to Add ability to delete multiple menu items

#2 @Kuzmanov
3 years ago

It would be really great if we finally get something like that in the core. If you're having dozen of menus it's really annoying and time consuming to toggle and click remove on every single item.

Few weeks ago I've created a plugin for this purpose, you can take a look at https://wordpress.org/plugins/strasho/

This ticket was mentioned in Slack in #core by kuzman0v. View the logs.


3 years ago

#4 @celloexpressions
3 years ago

Menu Customizer (being proposed for core merge in 4.3) does this - the add-item panel also reveals a bulk-delete mode (see http://wordpress.org/plugins/menu-customizer).

#5 @aeboi80
11 months ago

Still not seeing any progression on this. Has any more thought been given to this in the past 20 months for core?

#6 @welcher
11 months ago

  • Focuses administration added
  • Keywords needs-patch added

@aeboi80 a great place to start would be to create a patch to get things moving. Would you like to get the ball rolling by submitting one?

@welcher
6 months ago

Initial Patch

#7 @welcher
6 months ago

  • Keywords has-patch ui-feedback needs-unit-tests added; needs-patch removed

As the customizer provides a solution for this already, I've created a patch that added a similar solution for the menus page. I'd love someone with more experience with core CSS to have a look to make sure I haven't missed anything - I believe there may be some no-js rules that might need to be applied. This may also benefit from some Qunit tests.

@welcher
6 months ago

Screenshot of new button

#8 @welcher
6 months ago

  • Keywords has-screenshots added

@welcher
6 months ago

Alternate approach using a checkbox and dedicated button

@welcher
6 months ago

Alternate approach using a checkbox and dedicated button

#9 @welcher
6 months ago

Adding an alternate approach using checkboxes and a dedicated button. When clicked, the click events are fire on the inner remove buttons for the selected items.

I didn't add a confirmation dialogue as the user will has to click the Save Menu button to complete the edits.

Note: See TracTickets for help on using tickets.