Menu ID empty
-
Hi Shishir,
great plugin!
I ran into following issue by adding a new menu item (via Admin Menu Editor):PHP Notice: WP_Admin_Bar::add_node was called incorrectly. The menu ID should not be empty.
Could you have a look at w2o-admin-drop-down-menu/core/core.php:
line 22: // 0 = name, 1 = capability, 2 = file, 3 = class, 4 = id, 5 = icon src
line 54: $org_id = trim($item[5]);
line 55: $id = isset($item[5]) && ! empty($item[5]) ? ‘w2oadm_’ . $item[5] : ”;The index for $id should be 4, right? At least this has fixed the issue.
Thanks
Jasmin
- The topic ‘Menu ID empty’ is closed to new replies.