Make WordPress Core

Opened 12 months ago

Last modified 8 months ago

#24146 new defect (bug)

Menu items with blank labels are removed on saving

Reported by: rodrigo@… Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.5.1
Component: Menus Keywords: has-patch needs-testing 2nd-opinion
Focuses: Cc:

Description (last modified by SergeyBiryukov)


When edit an item of menu leaving the label in blank, the item is auto deleted.
There are two problems in that:

  1. I could need an item with blank title to add some class with an background image
  2. When this item has subitems with two or more depth, all subitems are moved to first depth loosing submenus hierarchy. Moreover if i try to drag the subitems to make the hierarchy again, after save, all subitems come back to first depth. While i not change the depth of first item this issue occurs again.

Best regards

Attachments (1)

24146.patch (2.5 KB) - added by vinod dalvi 8 months ago.
Patch Added.

Download all attachments as: .zip

Change History (8)

comment:1 rodrigo@…12 months ago

  • Cc rodrigo@… added

comment:2 johnbillion12 months ago

  • Component changed from General to Menus

comment:4 SergeyBiryukov8 months ago

Related: #23051, #25214.

I had the impression that it's a duplicate of #23051, but it's not. Menu items with blank titles are still deleted on saving.

comment:5 SergeyBiryukov8 months ago

  • Description modified (diff)
  • Summary changed from Auto delete of blank labels menu itens to Menu items with blank labels are removed on saving

comment:6 SergeyBiryukov8 months ago

#25218 was marked as a duplicate.

comment:7 vinod dalvi8 months ago

  • Cc mozillavvd@… added
  • Keywords has-patch needs-testing 2nd-opinion added

Patch Added.

vinod dalvi8 months ago

Patch Added.

Note: See TracTickets for help on using tickets.