Use classes instead of ids to allow the wp_page_menu() to be used more than once per-page. Fixes #8439 props corischlegel.
git-svn-id: https://develop.svn.wordpress.org/trunk@10114 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
94a4653a89
commit
4cc937b4d3
@ -689,7 +689,7 @@ function wp_page_menu( $args = array() ) {
|
||||
if ( $menu )
|
||||
$menu = '<ul>' . $menu . '</ul>';
|
||||
|
||||
$menu = '<div id="' . $args['menu_class'] . '">' . $menu . "</div>\n";
|
||||
$menu = '<div class="' . $args['menu_class'] . '">' . $menu . "</div>\n";
|
||||
$menu = apply_filters( 'wp_page_menu', $menu, $args );
|
||||
if ( $args['echo'] )
|
||||
echo $menu;
|
||||
|
Loading…
Reference in New Issue
Block a user