Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#31816 closed defect (bug) (fixed)

Duplicate ID on menu page

Reported by: sagarjadhav Owned by: helen
Priority: normal Milestone: 4.3
Component: Menus Version: 3.0
Severity: normal Keywords: has-patch
Cc: Focuses: ui, administration

Description

Duplicate ID for Menu on "nav-menus.php". Issue found after multiple menus created.

Go to Appearance -> Menus

http://i.imgur.com/UF9LAXA.png

Attachments (2)

31816.patch​ (727 bytes ) - added by sagarjadhav 12 years ago.
Fixed issue
31816.2.patch​ (708 bytes ) - added by sagarjadhav 11 years ago.
Updated patch

Download all attachments as: .zip

Change History (14)

#1 @sagarjadhav
12 years ago

  • Component General → Menus
  • Keywords has-patch added

#2 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review → 4.3

This ticket was mentioned in ​Slack in #design by helen. ​View the logs.


11 years ago

#4 @helen
11 years ago

  • Keywords needs-patch added; has-patch removed

I don't think that hidden input needs an ID at all.

#5 @sagarjadhav
11 years ago

  • Keywords has-patch added; needs-patch removed

I agree with you helen, as hidden input don't need ID. I have updated patch with mentioned change. Hope this fine now.

#6 @helen
11 years ago

  • Owner set to helen
  • Resolution → fixed
  • Status new → closed

In 32695:

Nav menus: Hidden inputs do not need an ID, especially one that's already in use.

props sagarjadhav.
fixes #31816.

#7 @ahmed daoud
11 years ago

  • Version 4.1.1 → trunk

#8 @ahmed daoud
11 years ago

hi.thank you for help me

#9 @SergeyBiryukov
11 years ago

  • Version trunk → 3.0

Introduced in [13257] as menu_id_in_edit, changed to menu-id-in-edit in [13375], then to menu in [13704].

#10 @ocean90
11 years ago

Follow-up: #32699

#11 @obenland
11 years ago

In 33161:

Nav menus: Restore menu id in hidden input.

wp-admin/js/nav-menu.js uses the value as context for quick searches and when
adding menu items.

Reverts [32695], see #31816.
Fixes #32699.

#12 @ocean90
11 years ago

In 33174:

Nav menus: Add an ID attribute to the menu select box to link it with the label.

see #31816.
fixes #32699.

Note: See TracTickets for help on using tickets.