`current_user_can()` was being called too early

Related issues #881, #565
Merge branch 'pr/898'

Conflicts:
	readme.txt