Make WordPress Core


Ignore:
Timestamp:
12/07/2008 12:11:37 PM (15 years ago)
Author:
westi
Message:

Use classes instead of ids to allow the wp_page_menu() to be used more than once per-page. Fixes #8439 props corischlegel.

File:
1 edited

Legend:

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

    r10070 r10114  
    690690        $menu = '<ul>' . $menu . '</ul>';
    691691
    692     $menu = '<div id="' . $args['menu_class'] . '">' . $menu . "</div>\n";
     692    $menu = '<div class="' . $args['menu_class'] . '">' . $menu . "</div>\n";
    693693    $menu = apply_filters( 'wp_page_menu', $menu, $args );
    694694    if ( $args['echo'] )
Note: See TracChangeset for help on using the changeset viewer.