Make WordPress Core

Opened 11 years ago

Closed 10 years ago

#26880 closed enhancement (wontfix)

Allow html in nav menu item descriptions

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

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
10 years ago

  • Summary changed from Inline nav menu description to Allow html in nav menu item descriptions

#2 @celloexpressions
10 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
10 years ago

  • Milestone Awaiting Review deleted
  • Version changed from 3.8 to 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
10 years ago

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