Error when logged in as Admin: Warning: array_flip() expects parameter 1 to be array, null given in C:\xampp\htdocs\wordpress\wp-admin\includes\menu.php on line 193
The error doesn’t prevent WordPress from loading or functioning. It just appears at the top of the Dashboard when logged in as “admin”, as a line of text at the top.
I’m not an experienced coder so expect I’ve done something basic wrong. Would appreciate some advice!
Bah…I know what I have to do, just don’t know how to do it. Logic tells me I need the if statement for the “if user isn’t an editor” part around both the menu_order_filter function and the add_filter call. Somehow…