Make WordPress Core

Opened 8 years ago

Closed 8 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 8 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ocean90
8 years ago

They are saved, but they will not be displayed.

#2 @filosofo
8 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.

#3 @ocean90
8 years ago

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