From 0f377dabc08cb0a68d56e7463cf6a9563c44928b Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 15 May 2010 15:05:57 +0000 Subject: [PATCH] Remove p tag from allowed nav menu container tags. Cannot validly contain block level elements. props Jorbin, fixes #13349. git-svn-id: http://svn.automattic.com/wordpress/trunk@14666 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/nav-menu-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index e9de781d12..0943db7b29 100644 --- a/wp-includes/nav-menu-template.php +++ b/wp-includes/nav-menu-template.php @@ -234,7 +234,7 @@ function wp_nav_menu( $args = array() ) { $nav_menu = ''; $items = ''; - $container_allowedtags = apply_filters( 'wp_nav_menu_container_allowedtags', array( 'div', 'p', 'nav' ) ); + $container_allowedtags = apply_filters( 'wp_nav_menu_container_allowedtags', array( 'div', 'nav' ) ); if ( in_array( $args->container, $container_allowedtags ) ) { $class = $args->container_class ? ' class="' . esc_attr($args->container_class) . '"' : ' class="menu-'. $menu->slug .'-container"';