@@ 1170-1172 (lines=3) @@ | ||
1167 | } |
|
1168 | ||
1169 | // Get user first name. |
|
1170 | if ( ! isset( $user['user_first'] ) || strlen( trim( $user['user_first'] ) ) < 1 ) { |
|
1171 | $user['user_first'] = isset( $post_data['give_first'] ) ? strip_tags( trim( $post_data['give_first'] ) ) : ''; |
|
1172 | } |
|
1173 | ||
1174 | // Get user last name. |
|
1175 | if ( ! isset( $user['user_last'] ) || strlen( trim( $user['user_last'] ) ) < 1 ) { |
|
@@ 1175-1177 (lines=3) @@ | ||
1172 | } |
|
1173 | ||
1174 | // Get user last name. |
|
1175 | if ( ! isset( $user['user_last'] ) || strlen( trim( $user['user_last'] ) ) < 1 ) { |
|
1176 | $user['user_last'] = isset( $post_data['give_last'] ) ? strip_tags( trim( $post_data['give_last'] ) ) : ''; |
|
1177 | } |
|
1178 | ||
1179 | // Add Title Prefix to user information. |
|
1180 | if ( empty( $user['user_title'] ) || strlen( trim( $user['user_title'] ) ) < 1 ) { |
|
@@ 1180-1182 (lines=3) @@ | ||
1177 | } |
|
1178 | ||
1179 | // Add Title Prefix to user information. |
|
1180 | if ( empty( $user['user_title'] ) || strlen( trim( $user['user_title'] ) ) < 1 ) { |
|
1181 | $user['user_title'] = ! empty( $post_data['give_title'] ) ? strip_tags( trim( $post_data['give_title'] ) ) : ''; |
|
1182 | } |
|
1183 | ||
1184 | // Get the user's billing address details. |
|
1185 | $user['address'] = array(); |