Make WordPress Core

Opened 13 years ago

Closed 12 years ago

#26880 closed enhancement (wontfix)

Allow html in nav menu item descriptions

Reported by: schonert Owned by:
Priority: normal Milestone:
Component: Menus Version: 3.0
Severity: normal Keywords:
Cc: Focuses:

Description

Atm. the wp menu builder strips all html from the wp_nav_menu_description. In case the description needs to be multiple lines, it requires a hardfix - which prevents possible updates.

Removing the esc_html() from from the menu builder, and adding it to the walker, would give us as developers the ability to control this behavior.

Change History (4)

#1 @celloexpressions
12 years ago

  • Summary Inline nav menu description → Allow html in nav menu item descriptions

#2 @celloexpressions
12 years ago

Due to the scaling issues with nav menus (#14134, etc.), and because not allowing html will probably result in generally smaller descriptions, I don't think we should do this.

#3 @obenland
12 years ago

  • Milestone Awaiting Review
  • Version 3.8 → 3.0

Tags are stripped through a filter (r14826), so not having them stripped anymore is merely a matter of unhooking that function.

I agree with celloexpressions, we should keep them stripped by default.

#4 @SergeyBiryukov
12 years ago

  • Resolution → wontfix
  • Status new → closed
Note: See TracTickets for help on using tickets.