Update notice-from-admin.php

Security fix: Only dismissible notice can be hidden
Rename some function