Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#12544 closed defect (bug) (fixed)

nav menu - need to strip tags from item descriptions

Reported by: yoavf Owned by: ryan
Milestone: 3.0 Priority: normal
Severity: major Version: 3.0
Component: Menus Keywords: has-patch
Focuses: Cc:


wp_setup_nav_menu_item( ) uses $menu_item->post_content as a fallback for $menu_item->description.

It needs to be stripped of tags or else the HTML might break the post editing menu

Attachments (1)

nav-menu-strip-tags-descriptions.diff (527 bytes) - added by yoavf 12 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ryan
12 years ago

We should probably create filters for the menu fields and add them to the approproate places in default-filters.php.

#2 @ptahdunbar
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r13704

#3 @nacin
12 years ago

  • Milestone changed from Unassigned to 3.0
Note: See TracTickets for help on using tickets.