Opened 10 years ago
Closed 10 years ago
#7114 closed enhancement (fixed)
XProfile: Do not duplicate populate logic in BP_XProfile_Field
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.7 | Priority: | normal |
| Severity: | normal | Version: | 2.4.0 |
| Component: | Extended Profile | Keywords: | has-patch commit |
| Cc: |
Description (last modified by )
While debugging #7112, I saw some duplicate DB logic that we can remove.
The $wpdb->get_row() call is duplicated in both BP_XProfile_Field::populate() and BP_XProfile_Field::get_instance() DB methods.
Attached patch merges the logic into the populate() method and passes existing unit tests.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Looks good