Make WordPress Core

Ticket #32464: 32464.2.patch

File 32464.2.patch, 737 bytes (added by shedonist, 9 years ago)

This patch has the full directory path

  • src/wp-includes/nav-menu-template.php

     
    338338                        $show_container = true;
    339339                        $class = $args->container_class ? ' class="' . esc_attr( $args->container_class ) . '"' : ' class="menu-'. $menu->slug .'-container"';
    340340                        $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 . '>';
    342343                }
    343344        }
    344345