WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13349 closed defect (bug) (fixed)

remove p from wp_nav_menu_container_allowedtags

Reported by: jorbin Owned by: jorbin
Milestone: 3.0 Priority: low
Severity: minor Version: 3.0
Component: Menus Keywords: has-patch
Focuses: Cc:

Description

p tags only shouldn't contain block level elements such as unordered lists. There for we should remove it from the default nav menu container tags.

http://www.w3.org/TR/html401/struct/text.html#h-9.3.1

Attachments (1)

nav-menu-template.diff (687 bytes) - added by jorbin 5 years ago.
remove p from allowed tags

Download all attachments as: .zip

Change History (3)

@jorbin5 years ago

remove p from allowed tags

comment:1 @jorbin5 years ago

  • Cc aaron@… added
  • Keywords has-patch added
  • Owner set to jorbin
  • Status changed from new to assigned

comment:2 @nacin5 years ago

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

(In [14666]) Remove p tag from allowed nav menu container tags. Cannot validly contain block level elements. props Jorbin, fixes #13349.

Note: See TracTickets for help on using tickets.