[wp-trac] [WordPress Trac] #14134: Menus item are limited to 16 item and will not save more than that
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 28 15:37:35 UTC 2012
#14134: Menus item are limited to 16 item and will not save more than that
--------------------------+-----------------------------
Reporter: jaanfx | Owner: filosofo
Type: defect (bug) | Status: reviewing
Priority: high | Milestone: Future Release
Component: Menus | Version: 3.0
Severity: major | Resolution:
Keywords: needs-patch |
--------------------------+-----------------------------
Comment (by ianboo):
I may quote the hack mentioned above (minor correction made, as
theme_location should be 'menu'):
{{{
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output,
$item, $depth, $args );
if ( !empty( $item->xfn ) ) {
$submenu = wp_nav_menu( array(
'echo' => 0,
'fallback_cb' => '',
'menu' => $item->xfn,
'menu_class' => 'sub-menu',
'container' => false )
);
$output .= $submenu;
}
}}}
This will display the included submenu correctly, but the classes set are
wrong (ancestor relation f.e. will not be made across the two menus). I am
unsure wether this is a critical modification, as some themes are
extending the walker in question.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14134#comment:69>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list