Skip Navigation

Layouts menu-cell stops displaying child items with WP 6.6

Open

Symptoms

On a site that uses the Layouts Menu Cell to display a hierarchical WordPress menu, after updating to WordPress 6.6 the child menu items are no longer rendered.

Workaround

The problem occurs because of more strict type comparisons in the WordPress core menu walker.

Until we publish an update of Layouts with the fix, you can work around the problem by editing the file /plugins/layouts/inc/cell_types/wpddl.cell_menu.class.php and updating line 320 like so:


parent::display_element($element, $children_elements, (int) $max_depth, $depth, $args, $output);

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>