As the comment above theme_commerce_wishlist_user_wishlist_page_title() already states, you might want to use the user's full name. The Drupal format_username() function is designed to show a formatted username and allows hook_username_alter (used by modules like Realname) to output a name other then the user's name property.

Proposition:

function theme_commerce_wishlist_user_wishlist_page_title(&$variables) {
  global $user;
  if ($user->uid == $variables['account']->uid) {
    return t('My wishlist');
  }
  return t("@name's wishlist", array('@name' => format_username($variables['account'])));
}

Comments

neograph734’s picture

Issue summary: View changes
aramboyajyan’s picture

Assigned: Unassigned » aramboyajyan

Good solution! Thanks again for reporting. Will commit this and #2485487: Wrong redirect from message after adding product to wishlist over the weekend.

neograph734’s picture

You still did most of thew work ;)

I'll run trough the code and give feedback where I see fit, for bigger issue's I'll build you a patch. Expect some more issues the upcoming days ;)

aramboyajyan’s picture

Status: Active » Fixed

Committed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.