diff --git a/co-authors-plus.php b/co-authors-plus.php index d9520742..be0aa917 100755 --- a/co-authors-plus.php +++ b/co-authors-plus.php @@ -334,9 +334,17 @@ public function get_coauthor_by( $key, $value, $force = false ) { return $user; } - } + } else { + $user = $this->get_user_by( $key, $value ); - return false; + if ( is_null( $user ) ) { + return false; + } + + $user->type = 'wpuser'; + + return $user; + } } /**