Skip to content

Commit

Permalink
Merge pull request #940 from GlotPress/812-fix-profile-when-no-user
Browse files Browse the repository at this point in the history
812: Fix profile display when no user is selected...
  • Loading branch information
toolstack committed Oct 15, 2018
2 parents c67ab95 + becb539 commit e8c730b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gp-includes/routes/profile.php
Expand Up @@ -40,7 +40,7 @@ public function profile_view( $user = '' ) {
$user = get_user_by( 'slug', $user );
}

if ( ! $user ) {
if ( ! $user || ( is_object( $user ) && $user instanceof WP_User && ! $user->exists() ) ) {
return $this->die_with_404();
}

Expand Down

0 comments on commit e8c730b

Please sign in to comment.