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: http://svn.automattic.com/wordpress/trunk@10114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
78a94a036a
commit
350be7f979
|
@ -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