Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13368 closed defect (bug) (fixed)

Menu items will not be saved if menu name contains a comma

Reported by: ocean90 Owned by:
Milestone: 3.0 Priority: high
Severity: normal Version: 3.0
Component: Menus Keywords: has-patch
Focuses: Cc:


Create a menu 'foo, bar' and then add a menu item, after a reload or clicking button Save Menu the menu items is disappeared.

Attachments (1)

allow_commas_in_menu_names.13368.diff (484 bytes) - added by filosofo 5 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 @ocean905 years ago

They are saved, but they will not be displayed.

comment:2 @filosofo5 years ago

  • Keywords has-patch added

Fixed by passing menu tax term_id as int. Notice, it must actually be an integer and not a numeric string, since a taxonomy function calls is_int to see whether to create a new term.

comment:3 @ocean905 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.