Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 0c57317

Browse files
committed
Map new property
1 parent c644372 commit 0c57317

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WordPressKit/AccountSettingsRemote.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public class AccountSettingsRemote: ServiceRemoteWordPressComREST {
131131
let displayName = response["display_name"] as? String,
132132
let aboutMe = response["description"] as? String,
133133
let username = response["user_login"] as? String,
134+
let usernameCanBeChanged = response["user_login_can_be_changed"] as? Bool,
134135
let email = response["user_email"] as? String,
135136
let emailPendingAddress = response["new_user_email"] as? String?,
136137
let emailPendingChange = response["user_email_change_pending"] as? Bool,
@@ -149,6 +150,7 @@ public class AccountSettingsRemote: ServiceRemoteWordPressComREST {
149150
displayName: displayName,
150151
aboutMe: aboutMeText!,
151152
username: username,
153+
usernameCanBeChanged: usernameCanBeChanged,
152154
email: email,
153155
emailPendingAddress: emailPendingAddress,
154156
emailPendingChange: emailPendingChange,

0 commit comments

Comments
 (0)