bbpress: Use nicename if display_name is missing

This commit is contained in:
Jay Pfaffman 2017-01-11 11:26:55 -08:00
parent c2a85440b6
commit c5d6bfe7e2
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class ImportScripts::Bbpress < ImportScripts::Base
id: u["id"].to_i, id: u["id"].to_i,
username: u["user_nicename"], username: u["user_nicename"],
email: u["user_email"].downcase, email: u["user_email"].downcase,
name: u["display_name"], name: u["display_name"].length > 0 ? u["display_name"] : u['user_nicename'],
created_at: u["user_registered"], created_at: u["user_registered"],
website: u["user_url"], website: u["user_url"],
bio_raw: users_description[u["id"]], bio_raw: users_description[u["id"]],