Don't use an anonymous function to trigger admin notices
Merge pull request #541 from x-team/issue-538

Don't use an anonymous function to trigger admin notices