Removal of more PHP Warnings
|Reported by:||Viper007Bond||Owned by:|
I'm using /wp-admin/includes/admin.php and /wp-admin/menu.php from outside of the admin area (to get a list of menu items). Doing so generates a PHP error.
Attached patch should fix it. Logic needs a looking at though to make sure I didn't break anything.