Skip to content

Commit

Permalink
Assist w/ name detection. See: wpsharks/comment-mail#204
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Feb 2, 2016
1 parent 4209fe6 commit 9e2e6d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function current_value_for($key_prop)

case 'lname':
if(!empty($current->last_name)) {
return $this->plugin->utils_string->last_name((string)$current->last_name);
return $this->plugin->utils_string->last_name('- '.(string)$current->last_name);
}
break;

Expand All @@ -299,7 +299,7 @@ public function current_value_for($key_prop)
}
break;
}
}
}

return NULL; // Default value.
}
Expand Down

0 comments on commit 9e2e6d7

Please sign in to comment.