Polylang Artisteer, bug in navmenus.php
-
I need to solve this problem that I have with viewing the web cast Vertical Menu with WordPress and Artisteer 4.1
I detail the error …
Warning: in_array() expects parameter 2 to be array, null given in /homepages/5/d475808735/htdocs/web/wp-content/plugins/polylang/include/nav-menu.php on line 233
Warning: in_array() expects parameter 2 to be array, null given in /homepages/5/d475808735/htdocs/web/wp-content/plugins/polylang/include/nav-menu.php on line 237
And here the code that indicates the error in nav-menus.php
232 foreach ($items as $item) {
233 if (in_array(‘current-lang’, $item->classes)) {
234 $item->classes = array_diff($item->classes, array(‘current-menu-item’));
235 $r_ids = array_merge($r_ids, $this->get_ancestors($item)); // remove the classes for these ancestors
236 }
237 elseif (in_array(‘current-menu-item’, $item->classes))
238 $k_ids = array_merge($k_ids, $this->get_ancestors($item)); // keep the classes for these ancestors
239 }Thanks,
The topic ‘Polylang Artisteer, bug in navmenus.php’ is closed to new replies.