Fix for non-admins
-
Suggestion:
If you’re not an admin you’ll get a insufficient permissions error. It would be good if you can add a check for the $_REQUEST[‘id’] to not remove the submenu like so in the unattach_init function :if (empty($_REQUEST[‘id’])) {
remove_submenu_page(‘tools.php’, ‘unattach’);
}Or do ramonqu’s suggestion.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fix for non-admins’ is closed to new replies.