WordPress.org

Make WordPress Core

Changeset 14666


Ignore:
Timestamp:
05/15/10 15:05:57 (5 years ago)
Author:
nacin
Message:

Remove p tag from allowed nav menu container tags. Cannot validly contain block level elements. props Jorbin, fixes #13349.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/nav-menu-template.php

    r14620 r14666  
    235235    $nav_menu = ''; 
    236236    $items = ''; 
    237     $container_allowedtags = apply_filters( 'wp_nav_menu_container_allowedtags', array( 'div', 'p', 'nav' ) ); 
     237    $container_allowedtags = apply_filters( 'wp_nav_menu_container_allowedtags', array( 'div', 'nav' ) ); 
    238238 
    239239    if ( in_array( $args->container, $container_allowedtags ) ) { 
Note: See TracChangeset for help on using the changeset viewer.