Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
class-register-capabilities.php in_array() TypeError fix
$user->roles may be undefined, so passing it into in_array() produces a TypeError. Found this to completely block loading of the WP admin. Simple fix of adding a fallback value.
- Loading branch information