Ticket #32464: 32464.2.patch
File 32464.2.patch, 737 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/nav-menu-template.php
338 338 $show_container = true; 339 339 $class = $args->container_class ? ' class="' . esc_attr( $args->container_class ) . '"' : ' class="menu-'. $menu->slug .'-container"'; 340 340 $id = $args->container_id ? ' id="' . esc_attr( $args->container_id ) . '"' : ''; 341 $nav_menu .= '<'. $args->container . $id . $class . '>'; 341 //If 'container' = true instead of an element name, then use default of 'div' 342 $nav_menu .= '<'. (is_bool( $args->container ) ? 'div' : $args->container) . $id . $class . '>'; 342 343 } 343 344 } 344 345